https://mooseframework.inl.gov
JohnsonSB.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 #include "Normal.h"
13 
17 class JohnsonSB : public Normal
18 {
19 public:
21 
23 
24  virtual Real pdf(const Real & x) const override;
25  virtual Real cdf(const Real & x) const override;
26  virtual Real quantile(const Real & p) const override;
27 
28  static Real
29  pdf(const Real & x, const Real & a, const Real & b, const Real & alpha_1, const Real & alpha_2);
30  static Real
31  cdf(const Real & x, const Real & a, const Real & b, const Real & alpha_1, const Real & alpha_2);
32  static Real quantile(
33  const Real & p, const Real & a, const Real & b, const Real & alpha_1, const Real & alpha_2);
34 
35 protected:
37  const Real & _lower;
38 
40  const Real & _upper;
41 
43  const Real & _alpha_1;
44 
46  const Real & _alpha_2;
47 };
A class used to generate a Johnson SB distribution.
Definition: JohnsonSB.h:17
A class used to generate a normal distribution.
Definition: Normal.h:17
JohnsonSB(const InputParameters &parameters)
Definition: JohnsonSB.C:35
const std::vector< double > x
const Real & _alpha_2
The second shape parameter, alpha_2.
Definition: JohnsonSB.h:46
virtual Real pdf(const Real &x) const override
Definition: JohnsonSB.C:82
static InputParameters validParams()
Definition: JohnsonSB.C:17
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real & _alpha_1
The first shape parameter, alpha_1.
Definition: JohnsonSB.h:43
const InputParameters & parameters() const
const Real & _lower
The lower location parameter, a.
Definition: JohnsonSB.h:37
virtual Real quantile(const Real &p) const override
Definition: JohnsonSB.C:94
virtual Real cdf(const Real &x) const override
Definition: JohnsonSB.C:88
const Real & _upper
The upper location parameter, b.
Definition: JohnsonSB.h:40