[][src]Trait stochastic_data_structures::StatisticalMethod

pub trait StatisticalMethod<T> where
    T: Clone + Copy
{ fn add(&mut self, rate: f32, payload: T) -> Outcome<T>;
fn delete(&mut self, outcome: Outcome<T>);
fn update(&mut self, outcome: Outcome<T>, new_rate: f32) -> Outcome<T>;
fn extract<Random: Rng>(&self, rnd: &mut Random) -> (ExtractStats, T, f32); }

Required methods

fn add(&mut self, rate: f32, payload: T) -> Outcome<T>

fn delete(&mut self, outcome: Outcome<T>)

fn update(&mut self, outcome: Outcome<T>, new_rate: f32) -> Outcome<T>

fn extract<Random: Rng>(&self, rnd: &mut Random) -> (ExtractStats, T, f32)

Loading content...

Implementors

impl<T> StatisticalMethod<T> for CompositeRejectionMethod<T> where
    T: Copy + Clone
[src]

impl<T> StatisticalMethod<T> for RejectionMethod<T> where
    T: Copy + Clone
[src]

Loading content...