Trait Evaluation

Source
pub trait Evaluation {
    // Required methods
    fn position(&self) -> &[f64];
    fn value(&self) -> f64;
}
Expand description

Captures the essence of a function evaluation.

Required Methods§

Source

fn position(&self) -> &[f64]

Position x with the lowest corresponding value f(x).

Source

fn value(&self) -> f64

The actual value f(x).

Implementors§