Normal distribution, scaled so that it spans between a specified minimum and maximum value, rather than from zero to infinity.
More...
|
| 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...
|
|
Normal distribution, scaled so that it spans between a specified minimum and maximum value, rather than from zero to infinity.
- Usage
- Example usage:
{
type normal;
Q 0;
min 0.001;
max 0.019;
mu 0.011;
sigma 0.003;
}
- Source files
-
- See also
- Foam::distribution
Definition at line 71 of file normal.H.