sde-sim-rs 0.5.1

Powerful and flexible stochastic differential equation (quasi) Monte-Carlo simulation library written in Rust with Python bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub mod pseudo;
pub mod sobol;

/// Trait for generating random or quasi-random numbers.
pub trait BaseRng {
    fn sample(&mut self, time_idx: usize, increment_idx: usize) -> f64;
}

/// Caches the generated random numbers for the current time step.
struct StepCache {
    time_idx: Option<usize>,
    values: Vec<f64>,
}