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 unitConversion &units, const dictionary &dict, const label sampleQ, randomGenerator &&rndGen) | |
Construct from a dictionary. More... | |
normal (const label Q, const label sampleQ, randomGenerator &&rndGen, 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... | |
scalar | mu () const |
Return the mean value. More... | |
scalar | sigma () const |
Return the standard deviation. More... | |
virtual void | write (Ostream &os, const unitConversion &units) const |
Write to a stream. More... | |
virtual tmp< scalarField > | x (const label n) const |
Return coordinates to plot across the range of the distribution. More... | |
![]() | |
Type | sample () const |
Sample the distribution into components of a primitive type. More... | |
virtual tmp< scalarField > | sample (const label n) const |
Sample the distribution into a field. More... | |
Friends | |
class | multiNormal |
Permit the multiNormal distribution to use private parts of this class. More... | |
Additional Inherited Members | |
![]() | |
FOR_ALL_FIELD_TYPES (VIRTUAL_SAMPLE_TYPE) | |
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 unitConversion & | units, |
const dictionary & | dict, | ||
const label | sampleQ, | ||
randomGenerator && | rndGen | ||
) |
Construct from a dictionary.
Definition at line 88 of file normal.C.
Referenced by normal::clone().
normal | ( | const label | Q, |
const label | sampleQ, | ||
randomGenerator && | rndGen, | ||
const label | n, | ||
const scalar | min, | ||
const scalar | max, | ||
const scalar | mu, | ||
const scalar | sigma | ||
) |
TypeName | ( | "normal" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Definition at line 150 of file normal.H.
References normal::normal().
|
virtual |
Sample the distribution.
Definition at line 159 of file normal.C.
References unintegrable::sample().
|
virtual |
|
virtual |
|
virtual |
Return the mean value.
Definition at line 184 of file normal.C.
References unintegrable::mean().
|
inline |
|
virtual |
Write to a stream.
Definition at line 205 of file normal.C.
References Foam::units(), Foam::vtkWriteOps::write(), and Foam::writeEntry().
|
virtual |
Return coordinates to plot across the range of the distribution.
Definition at line 221 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.