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 unitSet &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 | sampleForZeroQ () const |
| Sample the distribution for zero effective size exponent. More... | |
| scalar | sampleForZeroQ (const scalar s) const |
| Sample the distribution for zero effective size exponent. 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 unitSet &units) const |
| Write to a stream. More... | |
| virtual tmp< scalarField > | plotX (const label n) const |
| Return coordinates to plot across the range of the distribution. More... | |
Public Member Functions inherited from FieldDistribution< unintegrableForNonZeroQ, normal > | |
| 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 | |
Protected Member Functions inherited from FieldDistribution< unintegrableForNonZeroQ, normal > | |
| 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 unitSet & | units, |
| const dictionary & | dict, | ||
| const label | sampleQ, | ||
| randomGenerator && | rndGen | ||
| ) |
Construct from a dictionary.
Definition at line 71 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 143 of file normal.H.
References normal::normal().

|
virtual |
| Foam::scalar sampleForZeroQ | ( | const scalar | s | ) | const |
Sample the distribution for zero effective size exponent.
Definition at line 148 of file normal.C.
References standardNormal::approxErfInv(), s(), and Foam::sqrt().

|
virtual |
|
virtual |
|
virtual |
Return the mean value.
Definition at line 169 of file normal.C.
References unintegrable::mean().

|
inline |
Write to a stream.
Definition at line 190 of file normal.C.
References Foam::vtkWriteOps::write(), and Foam::writeEntry().

|
virtual |
Return coordinates to plot across the range of the distribution.
Definition at line 206 of file normal.C.
References Foam::max(), n, distribution::plotX(), and tmp< T >::ref().

|
friend |
Permit the multiNormal distribution to use private parts of this class.