Module ew::tools::statistics[][src]

The module with the loggers ready for using. The loggers implements the Logger trait.

Structs

CallCountData

The CallCountData struct used to store call count of goal function.

GoalCalcStatistics

The struct to calculate call count of goal function.

Statistics

The Statistics struct stores solutions for every algorithm running and every algorithm iteration.

StatisticsLogger

Traits

StatFunctionsConvergence

The trait contains methods for calculate statistics for Convergance type Convergence = Vec<Vec<Option<Solution>>>; convergence[run number][iteration]

StatFunctionsGoal

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

StatFunctionsSolution

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

Functions

get_predicate_success_goal

Create a precate for StatFunctionsSolution<T>::get_success_rate method. The predicate compares goal function value with optimal goal.

get_predicate_success_vec_solution

Create a precate for StatFunctionsSolution<T>::get_success_rate method. The predicate compares solution and valid answer.