#include <PinkGenerator.h>
Public Member Functions | |
PinkGenerator (int numGen=3) | |
virtual | ~PinkGenerator () |
virtual void | setNumGen (int numGen=3) |
virtual int | reset () |
Reset the Generator. | |
virtual int | adjust (double dt) |
virtual void | advance () |
Advance the Generator. | |
double | getValue () |
Get the current Value. | |
double | operator() () |
Protected Attributes | |
double | value |
int | nGen |
double | randreg [5] |
Static Protected Attributes | |
static double | av [3][5] |
static double | pv [3][5] |
static UniformDistribution | white_noise |
static MersenneTwister19937 | mt |
TODO
Definition at line 15 of file PinkGenerator.h.
PinkGenerator::PinkGenerator | ( | int | numGen = 3 |
) |
Definition at line 17 of file PinkGenerator.cpp.
References setNumGen().
PinkGenerator::~PinkGenerator | ( | ) | [virtual] |
Definition at line 33 of file PinkGenerator.cpp.
void PinkGenerator::setNumGen | ( | int | numGen = 3 |
) | [virtual] |
Definition at line 23 of file PinkGenerator.cpp.
Referenced by PinkGenerator().
int PinkGenerator::reset | ( | ) | [virtual] |
Reset the Generator.
Definition at line 45 of file PinkGenerator.cpp.
References av, mt, nGen, randreg, and white_noise.
Referenced by setNumGen().
Definition at line 38 of file PinkGenerator.cpp.
void PinkGenerator::advance | ( | ) | [virtual] |
Advance the Generator.
Definition at line 55 of file PinkGenerator.cpp.
References av, mt, nGen, pv, randreg, value, and white_noise.
Referenced by operator()().
double PinkGenerator::getValue | ( | ) | [inline] |
double PinkGenerator::operator() | ( | ) | [inline] |
Definition at line 46 of file PinkGenerator.h.
References advance(), and value.
double PinkGenerator::value [protected] |
Definition at line 18 of file PinkGenerator.h.
Referenced by advance(), getValue(), and operator()().
int PinkGenerator::nGen [protected] |
double PinkGenerator::av [static, protected] |
Initial value:
{{4.3606e-3, 5.9961e-3, 8.3586e-3, 0.0, 0.0}, {0.0100, 0.00763, 0.00832, 0.01036, 0.0}, {0.00224, 0.00821, 0.00798, 0.00694, 0.00992}}
Definition at line 21 of file PinkGenerator.h.
double PinkGenerator::pv [static, protected] |
Initial value:
{{3.1878e-1, 7.7686e-1, 9.7785e-1, 0.0, 0.0}, {0.3030, 0.74170, 0.91680, 0.97820, 0.0}, {0.15571, 0.30194, 0.74115, 0.93003, 0.98035}}
Definition at line 22 of file PinkGenerator.h.
Referenced by advance().
double PinkGenerator::randreg[5] [protected] |
UniformDistribution PinkGenerator::white_noise [static, protected] |
MersenneTwister19937 PinkGenerator::mt [static, protected] |