Trait Goal

Source
pub trait Goal<T> {
    // Required method
    fn get(&mut self, x: &T) -> f64;
}
Expand description

The trait for the goal function.

Required Methods§

Source

fn get(&mut self, x: &T) -> f64

Must return value of goal function for the point in the search space (x).

Implementors§

Source§

impl<'a, T> Goal<T> for GoalCalcStatistics<'a, T>

Source§

impl<T> Goal<T> for GoalFromFunction<T>