|
Vulcan
Aerospace Engineering Utilities Built on Janus
|
Classes | |
| struct | State |
| Random walk process state. More... | |
| struct | Coeffs |
| Pre-computed random walk coefficients. More... | |
Functions | |
| template<typename Scalar> | |
| State< Scalar > | init_state () |
| Initialize random walk state to zero. | |
| Coeffs | compute_coeffs (double K, double dt) |
| Compute random walk coefficients. | |
| template<typename Scalar> | |
| Scalar | step (State< Scalar > &state, const Coeffs &coeffs, const Scalar &noise_input) |
| Step the random walk process. | |
| template<typename Scalar> | |
| Scalar | step (State< Scalar > &state, double K, double dt, const Scalar &noise_input) |
| Step random walk with inline coefficient computation. | |
| double | expected_variance (double K, double t) |
| Compute expected variance at given time. | |
| double | expected_stddev (double K, double t) |
| Compute expected standard deviation at given time. | |
|
inline |
Compute random walk coefficients.
| K | Rate random walk coefficient [units/s/√Hz] |
| dt | Time step [s] |
|
inline |
Compute expected standard deviation at given time.
| K | Rate random walk coefficient [units/s/√Hz] |
| t | Time since start [s] |
|
inline |
Compute expected variance at given time.
For a random walk with parameter K, starting from zero: Var(t) = K² * t
| K | Rate random walk coefficient [units/s/√Hz] |
| t | Time since start [s] |
| State< Scalar > vulcan::random_walk::init_state | ( | ) |
Initialize random walk state to zero.
| Scalar | double or casadi::MX |
| Scalar vulcan::random_walk::step | ( | State< Scalar > & | state, |
| const Coeffs & | coeffs, | ||
| const Scalar & | noise_input ) |
Step the random walk process.
Updates the random walk state by integrating white noise.
| Scalar | double or casadi::MX |
| state | Current state (updated in-place) |
| coeffs | Pre-computed coefficients |
| noise_input | White noise sample with unit variance |
| Scalar vulcan::random_walk::step | ( | State< Scalar > & | state, |
| double | K, | ||
| double | dt, | ||
| const Scalar & | noise_input ) |
Step random walk with inline coefficient computation.
Convenience function for simpler usage when coefficients don't need to be pre-computed.
| Scalar | double or casadi::MX |
| state | Current state (updated in-place) |
| K | Rate random walk coefficient [units/s/√Hz] |
| dt | Time step [s] |
| noise_input | White noise sample with unit variance |