Trait StatisticalMethod

Source
pub trait StatisticalMethod<T>
where T: Clone + Copy,
{ // 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); }

Required Methods§

Source

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

Source

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

Source

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

Source

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

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.

Implementors§