Definition at line 46 of file TRandomNumberGenerator.hpp.
enum Exponent::MathTools::TRandomNumberGenerator::ERandomNumberGenerationType |
Type of random number.
Definition at line 62 of file TRandomNumberGenerator.hpp.
Exponent::MathTools::TRandomNumberGenerator< TypeName >::TRandomNumberGenerator | ( | ) | [inline] |
Construction
Definition at line 76 of file TRandomNumberGenerator.hpp.
References EXPONENT_CLASS_CONSTRUCTION.
virtual Exponent::MathTools::TRandomNumberGenerator< TypeName >::~TRandomNumberGenerator | ( | ) | [inline, virtual] |
Destruction
Definition at line 84 of file TRandomNumberGenerator.hpp.
References EXPONENT_CLASS_DESTRUCTION.
TypeName Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian1 | ( | ) | [inline, protected] |
Generate gaussian random number
TypeName | The gaussian number |
Definition at line 210 of file TRandomNumberGenerator.hpp.
References Exponent::MathTools::CMathTools::square(), and Exponent::MathTools::TRandomNumberGenerator< TypeName >::uniform().
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomNumber().
TypeName Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian2 | ( | ) | [inline, protected] |
Generate gaussian random number
TypeName | The gaussian number |
Definition at line 260 of file TRandomNumberGenerator.hpp.
References Exponent::MathTools::TRandomNumberGenerator< TypeName >::TRANDOM_NUMBER_GENERATOR_GAUSSIAN_COEFFICIENTS.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomNumber().
TypeName Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian3 | ( | ) | [inline, protected] |
Generate gaussian random number
TypeName | The gaussian number |
Definition at line 271 of file TRandomNumberGenerator.hpp.
References Exponent::MathTools::CMathTools::CMATH_2PI_DOUBLE.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomNumber().
void Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomArray | ( | TCollection< TypeName > & | array, | |
const ERandomNumberGenerationType | type | |||
) | [inline] |
Fill an array with random numbers (Fills with doubles up to size)
array | The array to fill with elements of TypeName. Note that this array must be initialised to the correct size | |
type | The type of random numbers |
Definition at line 173 of file TRandomNumberGenerator.hpp.
References Exponent::Collections::TCollection< TypeName >::getArraySize(), Exponent::Collections::TCollection< TypeName >::getMutableInternalBuffer(), and Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomArray().
void Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomArray | ( | TypeName * | array, | |
const long | numberToGenerate, | |||
const ERandomNumberGenerationType | type | |||
) | [inline] |
Fill an array with random numbers (Fills with doubles up to size)
array | The array to fill with CDoubles | |
numberToGenerate | Total number of random numbers to generate. Should be the number of elements in array | |
type | The type of random numbers |
Definition at line 126 of file TRandomNumberGenerator.hpp.
References Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_gaussian1, Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_gaussian2, Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_gaussian3, Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_standardLibrary, and Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_uniform.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomArray().
TypeName Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomNumber | ( | const ERandomNumberGenerationType | type | ) | [inline] |
Get a new random number
type | The type of random number |
TypeName | The new random number in range 0 - 1 |
Definition at line 107 of file TRandomNumberGenerator.hpp.
References Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_gaussian1, Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_gaussian2, Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_gaussian3, Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_standardLibrary, Exponent::MathTools::TRandomNumberGenerator< TypeName >::e_uniform, Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian1(), Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian2(), Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian3(), Exponent::MathTools::TRandomNumberGenerator< TypeName >::standardLibrary(), and Exponent::MathTools::TRandomNumberGenerator< TypeName >::uniform().
void Exponent::MathTools::TRandomNumberGenerator< TypeName >::seed | ( | ) | [inline] |
Seed the signal
Definition at line 95 of file TRandomNumberGenerator.hpp.
TypeName Exponent::MathTools::TRandomNumberGenerator< TypeName >::standardLibrary | ( | ) | [inline, protected] |
Generate a std lib random number between 0 and 1
TypeName | The random number |
Definition at line 201 of file TRandomNumberGenerator.hpp.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomNumber().
TypeName Exponent::MathTools::TRandomNumberGenerator< TypeName >::uniform | ( | ) | [inline, protected] |
Generate a random number between -1 and 1
TypeName | The random number |
Definition at line 192 of file TRandomNumberGenerator.hpp.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian1(), and Exponent::MathTools::TRandomNumberGenerator< TypeName >::getNewRandomNumber().
const TypeName Exponent::MathTools::TRandomNumberGenerator< TypeName >::TRANDOM_NUMBER_GENERATOR_GAUSSIAN_COEFFICIENTS[3] [static, protected] |
The variables required for gaussian 2
Definition at line 184 of file TRandomNumberGenerator.hpp.
Referenced by Exponent::MathTools::TRandomNumberGenerator< TypeName >::gaussian2().