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  static InputParameters validParams();
26 
27  JohnsonSBDistribution(const InputParameters & parameters);
28 
29  virtual Real pdf(const Real & x) const override;
30  virtual Real cdf(const Real & x) const override;
31  virtual Real quantile(const Real & p) const override;
32 
33  static Real
34  pdf(const Real & x, const Real & a, const Real & b, const Real & alpha_1, const Real & alpha_2);
35  static Real
36  cdf(const Real & x, const Real & a, const Real & b, const Real & alpha_1, const Real & alpha_2);
37  static Real quantile(
38  const Real & p, const Real & a, const Real & b, const Real & alpha_1, const Real & alpha_2);
39 
40 protected:
42  const Real & _lower;
43 
45  const Real & _upper;
46 
48  const Real & _alpha_1;
49 
51  const Real & _alpha_2;
52 };
NormalDistribution.h
JohnsonSBDistribution::_lower
const Real & _lower
The lower location parameter, a.
Definition: JohnsonSBDistribution.h:42
JohnsonSBDistribution::_alpha_1
const Real & _alpha_1
The first shape parameter, alpha_1.
Definition: JohnsonSBDistribution.h:48
JohnsonSBDistribution::_upper
const Real & _upper
The upper location parameter, b.
Definition: JohnsonSBDistribution.h:45
validParams< JohnsonSBDistribution >
InputParameters validParams< JohnsonSBDistribution >()
JohnsonSBDistribution::JohnsonSBDistribution
JohnsonSBDistribution(const InputParameters &parameters)
Definition: JohnsonSBDistribution.C:37
JohnsonSBDistribution::validParams
static InputParameters validParams()
Definition: JohnsonSBDistribution.C:19
JohnsonSBDistribution::_alpha_2
const Real & _alpha_2
The second shape parameter, alpha_2.
Definition: JohnsonSBDistribution.h:51
JohnsonSBDistribution
A class used to generate a Johnson SB distribution.
Definition: JohnsonSBDistribution.h:22
JohnsonSBDistribution::cdf
virtual Real cdf(const Real &x) const override
Definition: JohnsonSBDistribution.C:91
NormalDistribution
A class used to generate a normal distribution.
Definition: NormalDistribution.h:22
JohnsonSBDistribution::quantile
virtual Real quantile(const Real &p) const override
Definition: JohnsonSBDistribution.C:98
JohnsonSBDistribution::pdf
virtual Real pdf(const Real &x) const override
Definition: JohnsonSBDistribution.C:84