Trait ew::tools::statistics::StatFunctionsGoal[][src]

pub trait StatFunctionsGoal {
    fn get_average_goal(&self) -> Option<f64>;
fn get_standard_deviation_goal(&self) -> Option<f64>; }

The trait contains methods for calculate goal function statistics for Vec<Option<Solution>> type Solution = (T, GoalValue);

Required methods

fn get_average_goal(&self) -> Option<f64>[src]

Calculate an average of goal function. Returns None if self is empty or self contains None only.

fn get_standard_deviation_goal(&self) -> Option<f64>[src]

Calculate a standard deviation of goal function. Returns None if length of self less 2 or self contains None only.

Loading content...

Implementations on Foreign Types

impl<T> StatFunctionsGoal for Vec<Option<(T, f64)>>[src]

fn get_average_goal(&self) -> Option<f64>[src]

Calculate an average of goal function. Returns None if self is empty or self contains None only.

Loading content...

Implementors

Loading content...