gauss_markov¶
-
class
GaussMarkov
¶ - #include <gauss_markov.h>
This module is used to apply a second-order bounded Gauss-Markov random walk on top of an upper level process. The intent is that the caller will perform the set methods (setUpperBounds, setNoiseMatrix, setPropMatrix) as often as they need to, call computeNextState, and then call getCurrentState cyclically
Public Functions
-
GaussMarkov
()¶ The constructor initialies the random number generator used for the walks
-
GaussMarkov
(uint64_t size, uint64_t newSeed = 0x1badcad1)¶
-
~GaussMarkov
()¶ The destructor is a placeholder for one that might do something
-
void
computeNextState
()¶ This method performs almost all of the work for the Gauss Markov random walk. It uses the current random walk configuration, propagates the current state, and then applies appropriate errors to the states to set the current error level.
- Return
void
-
void
setRNGSeed
(uint64_t newSeed)¶ Method does just what it says, seeds the random number generator.
- Return
void
- Parameters
newSeed
: The seed to use in the random number generator
-
Eigen::VectorXd
getCurrentState
()¶ Method returns the current random walk state from model.
- Return
The private currentState which is the vector of random walk values
-
void
setUpperBounds
(Eigen::VectorXd newBounds)¶ Set the upper bounds on the random walk to newBounds.
- Return
void
- Parameters
newBounds
: the bounds to put on the random walk states
Public Members
-