www.mooseframework.org
JohnsonSBDistribution.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "NormalDistribution.h"
13 
15 
16 template <>
17 InputParameters validParams<JohnsonSBDistribution>();
18 
23 {
24 public:
25  JohnsonSBDistribution(const InputParameters & parameters);
26 
27  virtual Real pdf(const Real & x) const override;
28  virtual Real cdf(const Real & x) const override;
29  virtual Real quantile(const Real & p) const override;
30 
31  Real pdf(const Real & x,
32  const Real & a,
33  const Real & b,
34  const Real & alpha_1,
35  const Real & alpha_2) const;
36  Real cdf(const Real & x,
37  const Real & a,
38  const Real & b,
39  const Real & alpha_1,
40  const Real & alpha_2) const;
41  Real quantile(const Real & p,
42  const Real & a,
43  const Real & b,
44  const Real & alpha_1,
45  const Real & alpha_2) const;
46 
47 protected:
49  const Real & _lower;
50 
52  const Real & _upper;
53 
55  const Real & _alpha_1;
56 
58  const Real & _alpha_2;
59 };
60 
virtual Real pdf(const Real &x) const override
InputParameters validParams< JohnsonSBDistribution >()
const Real & _alpha_1
The first shape parameter, alpha_1.
const Real & _upper
The upper location parameter, b.
virtual Real quantile(const Real &p) const override
const Real & _alpha_2
The second shape parameter, alpha_2.
virtual Real cdf(const Real &x) const override
A class used to generate a normal distribution.
A class used to generate a Johnson SB distribution.
const Real & _lower
The lower location parameter, a.
JohnsonSBDistribution(const InputParameters &parameters)