[][src]Trait splr::traits::ProgressEvaluator

pub trait ProgressEvaluator {
    type Input;
    fn update(&mut self, val: Self::Input);
fn get(&self) -> f64;
fn trend(&self) -> f64;
fn is_active(&self) -> bool;
fn new(config: &Config) -> Self; }

Associated Types

type Input

the type of the argment of update.

Loading content...

Required methods

fn update(&mut self, val: Self::Input)

catch up with the current state.

fn get(&self) -> f64

return the current value.

fn trend(&self) -> f64

return a ratio of short / long statistics.

fn is_active(&self) -> bool

map the value into a bool for forcing/blocking restart.

fn new(config: &Config) -> Self

return a new instance.

Loading content...

Implementors

impl ProgressEvaluator for ProgressASG[src]

type Input = usize

impl ProgressEvaluator for ProgressLBD[src]

type Input = usize

Loading content...