Skip to main content

NoiseIncrement

Trait NoiseIncrement 

Source
pub trait NoiseIncrement:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn sample<R: Rng>(rng: &mut R, dt: f64) -> Increment<Self>;
}
Expand description

Types that can sample a Brownian increment for a given dt.

§Object safety

This trait is not object-safe because sample is generic over R: Rng. All uses are monomorphic — dyn NoiseIncrement will not compile.

Required Methods§

Source

fn sample<R: Rng>(rng: &mut R, dt: f64) -> Increment<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NoiseIncrement for f64

Source§

fn sample<R: Rng>(rng: &mut R, dt: f64) -> Increment<Self>

Source§

impl<const M: usize> NoiseIncrement for SVector<f64, M>

Source§

fn sample<R: Rng>(rng: &mut R, dt: f64) -> Increment<Self>

Implementors§