pub trait EventEvaluator<S: State>: Display + Send + Syncwhere
    DefaultAllocator: Allocator<f64, S::Size> + Allocator<f64, S::Size, S::Size> + Allocator<f64, S::VecLength>,{
    // Required methods
    fn eval(&self, state: &S) -> f64;
    fn epoch_precision(&self) -> Duration;
    fn value_precision(&self) -> f64;

    // Provided method
    fn eval_crossing(&self, prev_state: &S, next_state: &S) -> bool { ... }
}
Expand description

A trait to specify how a specific event must be evaluated.

Required Methods§

source

fn eval(&self, state: &S) -> f64

source

fn epoch_precision(&self) -> Duration

source

fn value_precision(&self) -> f64

Provided Methods§

source

fn eval_crossing(&self, prev_state: &S, next_state: &S) -> bool

Implementors§