A generator class returning a gaussian distributed random number. More...
#include <Random.H>


Public Member Functions | |
| gaussianGeneratorOp (const label seed=Random::defaultSeed) | |
| Default construct or with seed value. Uses default [0,1] interval. | |
| T | operator() () |
| Generate a random number. | |
| template<class U> | |
| T | operator() (const U &) const |
| Ignore parameter and generate a random number, which allows it to be used as a replacement for general unary operators. | |
| Public Member Functions inherited from Random | |
| Random (const label seedValue=defaultSeed) | |
| Construct with seed value. | |
| Random (const Random &rnd, const bool reset) | |
| Copy construct with possible reset of seed. | |
| label | seed () const |
| The initial random number seed that was used. | |
| void | reset (const label seedValue) |
| Reset the random number generator seed. | |
| int | bit () |
| Return a random bit. | |
| template<class Type> | |
| Type | sample01 () |
| Return a sample whose components lie in the range [0,1]. | |
| template<class Type> | |
| Type | GaussNormal () |
| Return a sample whose components are normally distributed with zero mean and unity variance N(0,1). | |
| template<class Type> | |
| Type | position (const Type &start, const Type &end) |
| Return a sample on the interval [start,end]. | |
| template<class Type> | |
| void | randomise01 (Type &value) |
| Randomise value in the range [0,1]. | |
| template<class Type> | |
| void | shuffle (UList< Type > &values) |
| Shuffle the values in the list. | |
| template<class Type> | |
| Type | globalSample01 () |
| Return a sample whose components lie in the range [0,1]. | |
| template<class Type> | |
| Type | globalGaussNormal () |
| Return a sample whose components are normally distributed with zero mean and unity variance N(0,1). | |
| template<class Type> | |
| Type | globalPosition (const Type &start, const Type &end) |
| Return a sample on the interval [start,end]. | |
| template<class Type> | |
| void | globalRandomise01 (Type &value) |
| Randomise value in the range 0-1. | |
| template<> | |
| Foam::scalar | sample01 () |
| template<> | |
| Foam::label | sample01 () |
| template<> | |
| Foam::scalar | GaussNormal () |
| template<> | |
| Foam::label | GaussNormal () |
| template<> | |
| Foam::scalar | position (const scalar &start, const scalar &end) |
| template<> | |
| Foam::label | position (const label &start, const label &end) |
| template<> | |
| Foam::scalar | globalSample01 () |
| template<> | |
| Foam::label | globalSample01 () |
| template<> | |
| Foam::scalar | globalGaussNormal () |
| template<> | |
| Foam::label | globalGaussNormal () |
| template<> | |
| Foam::scalar | globalPosition (const scalar &start, const scalar &end) |
| template<> | |
| Foam::label | globalPosition (const label &start, const label &end) |
| template<> | |
| scalar | sample01 () |
| template<> | |
| label | sample01 () |
| template<> | |
| scalar | GaussNormal () |
| template<> | |
| label | GaussNormal () |
| template<> | |
| scalar | position (const scalar &start, const scalar &end) |
| template<> | |
| label | position (const label &start, const label &end) |
| template<> | |
| scalar | globalSample01 () |
| template<> | |
| label | globalSample01 () |
| template<> | |
| scalar | globalGaussNormal () |
| template<> | |
| label | globalGaussNormal () |
| template<> | |
| scalar | globalPosition (const scalar &start, const scalar &end) |
| template<> | |
| label | globalPosition (const label &start, const label &end) |
Additional Inherited Members | |
| Static Public Attributes inherited from Random | |
| static constexpr label | defaultSeed = 123456 |
| The default seed value (name may change in the future). | |
A generator class returning a gaussian distributed random number.
|
inlineexplicit |
Default construct or with seed value. Uses default [0,1] interval.
Definition at line 368 of file Random.H.
References Random::defaultSeed, Random::Random(), and Random::seed().
