![]() |
Eclipse SUMO - Simulation of Urban MObility
|
An Ornstein-Uhlenbeck stochastic process. More...
#include <MSDriverState.h>
Public Member Functions | |
double | getNoiseIntensity () const |
double | getState () const |
Obtain the current state of the process. More... | |
double | getTimeScale () const |
OUProcess (double initialState, double timeScale, double noiseIntensity) | |
constructor More... | |
void | setNoiseIntensity (double noiseIntensity) |
set the process' noise intensity to a new value More... | |
void | setState (double state) |
set the process' state to a new value More... | |
void | setTimeScale (double timeScale) |
set the process' timescale to a new value More... | |
void | step (double dt) |
evolve for a time step of length dt. More... | |
~OUProcess () | |
destructor More... | |
Static Public Member Functions | |
static std::mt19937 * | getRNG () |
Private Attributes | |
double | myNoiseIntensity |
The noise intensity of the process. More... | |
double | myState |
The current state of the process. More... | |
double | myTimeScale |
The time scale of the process. More... | |
Static Private Attributes | |
static std::mt19937 | myRNG |
Random generator for OUProcesses. More... | |
An Ornstein-Uhlenbeck stochastic process.
Definition at line 40 of file MSDriverState.h.
OUProcess::OUProcess | ( | double | initialState, |
double | timeScale, | ||
double | noiseIntensity | ||
) |
constructor
Definition at line 96 of file MSDriverState.cpp.
OUProcess::~OUProcess | ( | ) |
destructor
Definition at line 102 of file MSDriverState.cpp.
|
inline |
Definition at line 65 of file MSDriverState.h.
References myNoiseIntensity.
|
inlinestatic |
Definition at line 78 of file MSDriverState.h.
References myRNG.
Referenced by MSStateHandler::myStartElement(), and MSStateHandler::saveRNGs().
double OUProcess::getState | ( | ) | const |
Obtain the current state of the process.
Definition at line 118 of file MSDriverState.cpp.
References myState.
Referenced by MSSimpleDriverState::getPerceivedHeadway(), MSSimpleDriverState::getPerceivedSpeedDifference(), getTimeScale(), and MSSimpleDriverState::update().
|
inline |
Definition at line 69 of file MSDriverState.h.
References getState(), and myTimeScale.
|
inline |
set the process' noise intensity to a new value
Definition at line 56 of file MSDriverState.h.
References myNoiseIntensity.
Referenced by MSSimpleDriverState::updateError().
|
inline |
set the process' state to a new value
Definition at line 61 of file MSDriverState.h.
References myState.
Referenced by MSSimpleDriverState::setAwareness(), and MSSimpleDriverState::updateError().
|
inline |
set the process' timescale to a new value
Definition at line 51 of file MSDriverState.h.
References myTimeScale.
Referenced by MSSimpleDriverState::updateError().
void OUProcess::step | ( | double | dt | ) |
evolve for a time step of length dt.
Definition at line 106 of file MSDriverState.cpp.
References myNoiseIntensity, myRNG, myState, myTimeScale, and RandHelper::randNorm().
Referenced by MSSimpleDriverState::updateError().
|
private |
The noise intensity of the process.
Definition at line 93 of file MSDriverState.h.
Referenced by getNoiseIntensity(), setNoiseIntensity(), and step().
|
staticprivate |
Random generator for OUProcesses.
Definition at line 96 of file MSDriverState.h.
|
private |
The current state of the process.
Definition at line 85 of file MSDriverState.h.
Referenced by getState(), setState(), and step().
|
private |
The time scale of the process.
Definition at line 89 of file MSDriverState.h.
Referenced by getTimeScale(), setTimeScale(), and step().