Normal distribution, scaled so that it spans between a specified minimum and maximum value, rather than from zero to infinity. More...
Public Member Functions | |
TypeName ("normal") | |
Runtime type information. More... | |
normal (const dictionary &dict, Random &rndGen, const label sampleQ) | |
Construct from a dictionary. More... | |
normal (Random &rndGen, const label Q, const label sampleQ, const label n, const scalar min, const scalar max, const scalar mu, const scalar sigma) | |
Construct from components. More... | |
normal (const normal &d, const label sampleQ) | |
Construct copy. More... | |
virtual autoPtr< distribution > | clone (const label sampleQ) const |
Construct and return a clone. More... | |
virtual | ~normal () |
Destructor. More... | |
virtual scalar | sample () const |
Sample the distribution. More... | |
virtual scalar | min () const |
Return the minimum value. More... | |
virtual scalar | max () const |
Return the maximum value. More... | |
virtual scalar | mean () const |
Return the mean value. More... | |
virtual tmp< scalarField > | x (const label n) const |
Return coordinates to plot across the range of the distribution. More... | |
Public Member Functions inherited from FieldDistribution< unintegrableForNonZeroQ, normal > | |
virtual tmp< scalarField > | sample (const label n) const |
Sample the distribution. More... | |
Friends | |
class | multiNormal |
Permit the multiNormal distribution to use private parts of this class. More... | |
Normal distribution, scaled so that it spans between a specified minimum and maximum value, rather than from zero to infinity.
{ type normal; Q 0; min 0.001; max 0.019; mu 0.011; sigma 0.003; }
normal | ( | const dictionary & | dict, |
Random & | rndGen, | ||
const label | sampleQ | ||
) |
Construct from a dictionary.
Definition at line 108 of file normal.C.
Referenced by normal::clone().
TypeName | ( | "normal" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 158 of file normal.H.
References normal::normal().
|
virtual |
Sample the distribution.
Definition at line 172 of file normal.C.
References unintegrable::sample().
|
virtual |
|
virtual |
|
virtual |
Return the mean value.
Definition at line 197 of file normal.C.
References unintegrable::mean().
|
virtual |
Return coordinates to plot across the range of the distribution.
Definition at line 219 of file normal.C.
References Foam::max(), n, tmp< T >::ref(), and distribution::x().
|
friend |
Permit the multiNormal distribution to use private parts of this class.