1 #ifndef SM_STDStochasticFunctions_H
2 #define SM_STDStochasticFunctions_H
5 #include "SM_StochasticFunctions.h"
8 #include "RNDSTD_NormalDistribution.h"
9 #include "RNDSTD_UniformRealDistribution.h"
13 #include "RNDSTD_UniformIntDistribution.h"
101 inline static CORE_UniquePointer<SelfClass>
New() {
102 CORE_UniquePointer<SelfClass> p=CORE_UniquePointer<SelfClass>(
new SelfClass(),
118 virtual void setSeed(
const tULLInt& seed)
override {
133 virtual void jump(
const tInteger& jumps,
const tULLInt& seed) {
146 return mNormalDistribution.
random(mRNG);
154 return mUniform01Distribution.
random(mRNG);
162 #include "RNDSTD_MT19937.h"
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:113
virtual tMemSize getContentsMemorySize() const
return nthe memory size of the included associations
Definition: CORE_Object.h:278
T random(RAND_RandomNumberGenerator< T1, G, D1 > &generator)
random a number
Definition: RAND_RandomNumberDistribution.h:116
This class implements a stochastic function with a real uniform law implemented from the boost librar...
Definition: RNDSTD_NormalDistribution.h:16
This class implements virtual methods of SM_StochasticFunctions using math/random/std classes.
Definition: SM_STDStochasticFunctions.h:25
virtual void jump(const tInteger &jumps, const tULLInt &seed)
jump a number of virtual random number generator
Definition: SM_STDStochasticFunctions.h:133
virtual ~SM_STDStochasticFunctions(void)
destroy
Definition: SM_STDStochasticFunctions.h:69
tReal scNormalRandom()
return a random number
Definition: SM_STDStochasticFunctions.h:144
tReal scUniformRandom()
compute a uniform random number in [0,1[
Definition: SM_STDStochasticFunctions.h:152
static CORE_UniquePointer< SelfClass > New()
build a new instance of default class factory
Definition: SM_STDStochasticFunctions.h:101
virtual void setSeed() override
void set seed
Definition: SM_STDStochasticFunctions.h:123
virtual tMemSize getMemorySize() const
return the memory size of the class and the memory size of all its attributes/associations
Definition: SM_STDStochasticFunctions.h:90
virtual void setSeed(const tULLInt &seed) override
void set seed
Definition: SM_STDStochasticFunctions.h:118
SM_STDStochasticFunctions(void)
create
Definition: SM_STDStochasticFunctions.h:55
static void SetIsThreadSafe(const tBoolean &b)
set if the sochastic function is thread safe
Definition: SM_StochasticFunctionsInterface.h:134
This class describes a stochastic functions with templated methods.
Definition: SM_StochasticFunctions.h:25