Base class for generating pseudo-random noise for simulating the Process. More...
#include <noise.hpp>
Public Member Functions | |
virtual Noise * | clone () const =0 |
virtual Noise * | clone (uint idx) const =0 |
uint | getDim () const |
BlockStatus | getStatus () const |
virtual returnValue | init (uint seed=0)=0 |
BooleanType | isEmpty () const |
Noise () | |
Noise (const Noise &rhs) | |
Noise & | operator= (const Noise &rhs) |
virtual returnValue | step (DVector &_w)=0 |
virtual returnValue | step (VariablesGrid &_w)=0 |
virtual | ~Noise () |
Protected Member Functions | |
double | getUniformRandomNumber (double _lowerLimit, double _upperLimit) const |
returnValue | setStatus (BlockStatus _status) |
Protected Attributes | |
BlockStatus | status |
VariablesGrid | w |
Base class for generating pseudo-random noise for simulating the Process.
The class Noise serves as base class for generating pseudo-random noise for simulating the Process within the SimulationEnvironment.
Noise::Noise | ( | const Noise & | rhs | ) |
Noise::~Noise | ( | ) | [virtual] |
virtual Noise* Noise::clone | ( | ) | const [pure virtual] |
Clone constructor (deep copy).
Implemented in GaussianNoise, UniformNoise, and ColoredNoise.
virtual Noise* Noise::clone | ( | uint | idx | ) | const [pure virtual] |
Clone constructor for a given noise component (deep copy).
[in] | idx | Right-hand side object. |
Implemented in GaussianNoise, UniformNoise, and ColoredNoise.
uint Noise::getDim | ( | ) | const [inline] |
Returns dimension of noise vector.
BlockStatus Noise::getStatus | ( | ) | const [inline] |
Returns current status of noise block, see documentation of BlockStatus for details.
double Noise::getUniformRandomNumber | ( | double | _lowerLimit, |
double | _upperLimit | ||
) | const [inline, protected] |
Returns a pseudo-random number based on a uniform distribution with given lower and upper limits.
[in] | _lowerLimit | Lower limit of random variable. |
[in] | _upperLimit | Lower limit of random variable. |
virtual returnValue Noise::init | ( | uint | seed = 0 | ) | [pure virtual] |
Initializes noise generation and performs a couple of consistency checks. Initialization of the pseudo-random number generator can be based on a seed in order to allow exact reproduction of generated noise. If seed is not specified (i.e. 0), a seed is obtain from the system clock.
[in] | seed | Seed for pseudo-random number generator. |
Implemented in GaussianNoise, UniformNoise, and ColoredNoise.
BooleanType Noise::isEmpty | ( | ) | const [inline] |
Returns whether noise vector is empty (i.e. has dimension zero).
returnValue Noise::setStatus | ( | BlockStatus | _status | ) | [inline, protected] |
Assigns new status to noise block
[in] | _status | New status. |
virtual returnValue Noise::step | ( | DVector & | _w | ) | [pure virtual] |
Generates a single noise vector based on current internal settings.
[out] | _w | Generated noise vector. |
Implemented in GaussianNoise, UniformNoise, and ColoredNoise.
virtual returnValue Noise::step | ( | VariablesGrid & | _w | ) | [pure virtual] |
Generates a noise vector sequence based on current internal settings. Noise is generated for each grid point of the VariablesGrid passed.
[in,out] | _w | Generated noise vector sequence. |
Implemented in GaussianNoise, UniformNoise, and ColoredNoise.
BlockStatus Noise::status [protected] |
VariablesGrid Noise::w [protected] |