NonautonomousStochasticProcess

Trait NonautonomousStochasticProcess 

Source
pub trait NonautonomousStochasticProcess: StochasticProcess {
    // Required methods
    fn drift(&self, t: f32, x: f32) -> f32;
    fn diffusion(&self, t: f32, x: f32) -> f32;

    // Provided method
    fn run_euler_maruyama(
        &self,
        x_0: f32,
        t_0: f32,
        t_n: f32,
        n: usize,
    ) -> SimulatedPath { ... }
}
Expand description

Non-autonomous stochastic process.

A non-autonomous stochastic process is a stochastic process in which the drift and diffusion are functions that depend on time.

Required Methods§

Source

fn drift(&self, t: f32, x: f32) -> f32

Source

fn diffusion(&self, t: f32, x: f32) -> f32

Provided Methods§

Source

fn run_euler_maruyama( &self, x_0: f32, t_0: f32, t_n: f32, n: usize, ) -> SimulatedPath

Implementors§