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. | |
double | getTimeScale () const |
OUProcess (double initialState, double timeScale, double noiseIntensity) | |
constructor | |
void | setNoiseIntensity (double noiseIntensity) |
set the process' noise intensity to a new value | |
void | setState (double state) |
set the process' state to a new value | |
void | setTimeScale (double timeScale) |
set the process' timescale to a new value | |
void | step (double dt) |
evolve for a time step of length dt. | |
~OUProcess () | |
destructor | |
Static Public Member Functions | |
static SumoRNG * | getRNG () |
static double | step (double state, double dt, double timeScale, double noiseIntensity) |
static version of the step() | |
Private Attributes | |
double | myNoiseIntensity |
The noise intensity of the process. | |
double | myState |
The current state of the process. | |
double | myTimeScale |
The time scale of the process. | |
Static Private Attributes | |
static SumoRNG | myRNG |
Random generator for OUProcesses. | |
An Ornstein-Uhlenbeck stochastic process.
Definition at line 38 of file MSDriverState.h.
OUProcess::OUProcess | ( | double | initialState, |
double | timeScale, | ||
double | noiseIntensity | ||
) |
constructor
Definition at line 95 of file MSDriverState.cpp.
OUProcess::~OUProcess | ( | ) |
destructor
Definition at line 101 of file MSDriverState.cpp.
|
inline |
Definition at line 65 of file MSDriverState.h.
References myNoiseIntensity.
Referenced by MSSimpleDriverState::getErrorNoiseIntensity().
|
inlinestatic |
Definition at line 78 of file MSDriverState.h.
References myRNG.
Referenced by NLBuilder::initRandomness(), MSStateHandler::myStartElement(), and MSStateHandler::saveRNGs().
double OUProcess::getState | ( | ) | const |
Obtain the current state of the process.
Definition at line 122 of file MSDriverState.cpp.
References myState.
Referenced by MSSimpleDriverState::getErrorState(), MSSimpleDriverState::getPerceivedHeadway(), MSSimpleDriverState::getPerceivedOwnSpeed(), MSSimpleDriverState::getPerceivedSpeedDifference(), and MSSimpleDriverState::update().
|
inline |
Definition at line 69 of file MSDriverState.h.
References myTimeScale.
Referenced by MSSimpleDriverState::getErrorTimeScale().
|
inline |
set the process' noise intensity to a new value
Definition at line 56 of file MSDriverState.h.
References myNoiseIntensity.
Referenced by MSSimpleDriverState::setErrorNoiseIntensity(), and 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(), MSSimpleDriverState::setErrorState(), 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::setErrorTimeScale(), and MSSimpleDriverState::updateError().
void OUProcess::step | ( | double | dt | ) |
evolve for a time step of length dt.
Definition at line 105 of file MSDriverState.cpp.
References myNoiseIntensity, myRNG, myState, myTimeScale, and RandHelper::randNorm().
Referenced by MSLCM_SL2015::getLateralDrift(), MSLCM_LC2013::prepareStep(), and MSSimpleDriverState::updateError().
|
static |
static version of the step()
see above
Definition at line 116 of file MSDriverState.cpp.
References myRNG, and RandHelper::randNorm().
|
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().