Generates pseudo-random colored noise for simulating the Process. More...
#include <colored_noise.hpp>
Public Member Functions | |
virtual ColoredNoise * | clone () const |
virtual ColoredNoise * | clone (uint idx) const |
ColoredNoise () | |
ColoredNoise (const DynamicSystem &_dynamicSystem) | |
ColoredNoise (const ColoredNoise &rhs) | |
virtual returnValue | init (uint seed=0) |
ColoredNoise & | operator= (const ColoredNoise &rhs) |
returnValue | setDynamicSystem (const DynamicSystem &_dynamicSystem) |
virtual returnValue | step (DVector &_w) |
virtual returnValue | step (VariablesGrid &_w) |
virtual | ~ColoredNoise () |
Protected Attributes | |
DynamicSystem * | dynamicSystem |
Generates pseudo-random colored noise for simulating the Process.
The class ColoredNoise generates pseudo-random colored noise for simulating the Process within the SimulationEnvironment.
Definition at line 57 of file colored_noise.hpp.
Default constructor.
Definition at line 42 of file colored_noise.cpp.
ColoredNoise::ColoredNoise | ( | const DynamicSystem & | _dynamicSystem | ) |
Constructor that takes dimension of noise vector.
Definition at line 48 of file colored_noise.cpp.
ColoredNoise::ColoredNoise | ( | const ColoredNoise & | rhs | ) |
Copy constructor (deep copy).
[in] | rhs | Right-hand side object. |
Definition at line 55 of file colored_noise.cpp.
ColoredNoise::~ColoredNoise | ( | ) | [virtual] |
Destructor.
Definition at line 64 of file colored_noise.cpp.
ColoredNoise * ColoredNoise::clone | ( | ) | const [virtual] |
Clone constructor (deep copy).
Implements Noise.
Definition at line 90 of file colored_noise.cpp.
ColoredNoise * ColoredNoise::clone | ( | uint | idx | ) | const [virtual] |
Clone constructor for a given noise component (deep copy).
[in] | idx | Right-hand side object. |
Implements Noise.
Definition at line 96 of file colored_noise.cpp.
returnValue ColoredNoise::init | ( | uint | seed = 0 | ) | [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. |
Implements Noise.
Definition at line 119 of file colored_noise.cpp.
ColoredNoise & ColoredNoise::operator= | ( | const ColoredNoise & | rhs | ) |
Assignment Operator (deep copy)
[in] | rhs | Right-hand side object. |
Definition at line 71 of file colored_noise.cpp.
returnValue ColoredNoise::setDynamicSystem | ( | const DynamicSystem & | _dynamicSystem | ) |
Assigns a new dynamic system for generating the colored noise.
Definition at line 106 of file colored_noise.cpp.
returnValue ColoredNoise::step | ( | DVector & | _w | ) | [virtual] |
Generates a single noise vector based on current internal settings.
[out] | _w | Generated noise vector. |
Implements Noise.
Definition at line 129 of file colored_noise.cpp.
returnValue ColoredNoise::step | ( | VariablesGrid & | _w | ) | [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. |
Implements Noise.
Definition at line 137 of file colored_noise.cpp.
DynamicSystem* ColoredNoise::dynamicSystem [protected] |
Dynamic system generating the colored noise.
Definition at line 166 of file colored_noise.hpp.