Function wiener_process

pub fn wiener_process<F, const D: usize>(
    rng: &mut ChaCha8Rng,
    dt: F,
) -> Result<Matrix<F, Const<D>, Const<1>, ArrayStorage<F, D, 1>>, RngError>
Available on crate feature cara only.
Expand description

Generate a vector corresponding to a wiener process.

This function calculates a statically sized random vector with dimension D. It uses a rand_distr::StandardNormal distribution and divides the result by dt such that the correct incremental wiener process is obtained.