A class used to generate a logistic distribution.
More...
#include <LogisticDistribution.h>
|
| LogisticDistribution (const InputParameters ¶meters) |
|
virtual Real | pdf (const Real &x) const override |
|
virtual Real | cdf (const Real &x) const override |
|
virtual Real | quantile (const Real &p) const override |
|
|
static InputParameters | validParams () |
|
static Real | pdf (const Real &x, const Real &location, const Real &shape) |
|
static Real | cdf (const Real &x, const Real &location, const Real &shape) |
|
static Real | quantile (const Real &p, const Real &location, const Real &shape) |
|
|
const Real & | _location |
| The location or mean of the distribution (alpha or mu) More...
|
|
const Real & | _shape |
| The shape of the distribution (beta or s) More...
|
|
A class used to generate a logistic distribution.
Definition at line 22 of file LogisticDistribution.h.
◆ LogisticDistribution()
LogisticDistribution::LogisticDistribution |
( |
const InputParameters & |
parameters | ) |
|
◆ cdf() [1/2]
Real LogisticDistribution::cdf |
( |
const Real & |
x | ) |
const |
|
overridevirtual |
◆ cdf() [2/2]
Real LogisticDistribution::cdf |
( |
const Real & |
x, |
|
|
const Real & |
location, |
|
|
const Real & |
shape |
|
) |
| |
|
static |
Definition at line 41 of file LogisticDistribution.C.
43 Real z = std::exp(-(x - location) / shape);
44 return 1.0 / (1.0 + z);
◆ pdf() [1/2]
Real LogisticDistribution::pdf |
( |
const Real & |
x | ) |
const |
|
overridevirtual |
◆ pdf() [2/2]
Real LogisticDistribution::pdf |
( |
const Real & |
x, |
|
|
const Real & |
location, |
|
|
const Real & |
shape |
|
) |
| |
|
static |
Definition at line 34 of file LogisticDistribution.C.
36 Real z = std::exp(-(x - location) / shape);
37 return z / (shape * Utility::pow<2>(1.0 + z));
◆ quantile() [1/2]
Real LogisticDistribution::quantile |
( |
const Real & |
p | ) |
const |
|
overridevirtual |
◆ quantile() [2/2]
Real LogisticDistribution::quantile |
( |
const Real & |
p, |
|
|
const Real & |
location, |
|
|
const Real & |
shape |
|
) |
| |
|
static |
◆ validParams()
InputParameters LogisticDistribution::validParams |
( |
| ) |
|
|
static |
Definition at line 19 of file LogisticDistribution.C.
22 params.addClassDescription(
"Logistic distribution.");
23 params.addRequiredParam<Real>(
"location",
"Location or mean of the distribution (alpha or mu)");
24 params.addRequiredParam<Real>(
"shape",
"Shape of the distribution (beta or s)");
◆ _location
const Real& LogisticDistribution::_location |
|
protected |
◆ _shape
const Real& LogisticDistribution::_shape |
|
protected |
The documentation for this class was generated from the following files: