Struct palarust::util::Converger
[−]
[src]
pub struct Converger { /* fields omitted */ }
A structure that helps determine if a value has converged statistically or not.
Methods
impl Converger
[src]
fn new(char_len: usize, epsilon: f64) -> Self
fn take_value(&mut self, val: f64)
Store a value into a vector and increment the number of values stored by 1. If the number of values stored is larger that the characteristic number of values we want to perform statistics on, then we remove the extra value stored.
fn has_converged(&self) -> bool
Checks if the value has converged.