![]() |
Ultra 0.9.4
|
#include <analyzer.h>
Public Member Functions | |
| template<LayeredPopulation P, Evaluator E> | |
| analyzer (const P &, const E &) | |
| void | add (const I &, const F &, population_uid) |
| void | clear () |
| group_stat< I, F > | overall_group_stat () const |
| distribution< double > | age_dist () const |
| auto | crossover_types () const |
| distribution< F > | fit_dist () const |
| distribution< double > | length_dist () const |
| const distribution< double > & | age_dist (population_uid) const |
| const auto & | crossover_types (population_uid) const |
| const distribution< F > & | fit_dist (population_uid) const |
| const distribution< double > & | length_dist (population_uid) const |
| template<Population P> | |
| const distribution< double > & | age_dist (const P &) const |
| template<Population P> | |
| const auto & | crossover_types (const P &) const |
| template<Population P> | |
| const distribution< F > & | fit_dist (const P &) const |
| template<Population P> | |
| const distribution< double > & | length_dist (const P &) const |
| bool | is_valid () const |
| template<LayeredPopulation P, Evaluator E> | |
| analyzer (const P &pop, const E &eva) | |
| template<Population P> | |
| const auto & | crossover_types (const P &g) const |
| template<Population P> | |
| const distribution< double > & | age_dist (const P &g) const |
| template<Population P> | |
| const distribution< F > & | fit_dist (const P &g) const |
| template<Population P> | |
| const distribution< double > & | length_dist (const P &g) const |
Analyzer takes a statistics snapshot of a population.
Procedure:
You can get information about:
|
explicit |
Calculates statistics about a layered population.
| [in] | pop | the layered population |
| ultra::analyzer< I, F >::analyzer | ( | const P & | pop, |
| const E & | eva ) |
Calculates statistics about a layered population.
| [in] | pop | the layered population |
| void analyzer::add | ( | const I & | ind, |
| const F & | f, | ||
| population_uid | uid ) |
Adds a new individual to the pool used to calculate statistics.
| [in] | ind | new individual |
| [in] | f | fitness of the new individual |
| [in] | uid | a group of the population |
The optional uid parameter is used to split information.
|
nodiscard |
|
nodiscard |
| [in] | g | a population / subpopulation |
| const distribution< double > & ultra::analyzer< I, F >::age_dist | ( | const P & | g | ) | const |
| [in] | g | a population / subpopulation |
|
nodiscard |
| [in] | g | the UID of a population / subpopulation |
| void analyzer::clear | ( | ) |
Resets gathered statics.
|
nodiscard |
|
nodiscard |
| [in] | g | a population / subpopulation |
| const auto & ultra::analyzer< I, F >::crossover_types | ( | const P & | g | ) | const |
| [in] | g | a population / subpopulation |
|
nodiscard |
| [in] | g | the UID of a population / subpopulation |
|
nodiscard |
|
nodiscard |
| [in] | g | a population / subpopulation |
| const distribution< F > & ultra::analyzer< I, F >::fit_dist | ( | const P & | g | ) | const |
| [in] | g | a population / subpopulation |
|
nodiscard |
| [in] | g | the UID of a population / subpopulation |
|
nodiscard |
|
nodiscard |
|
nodiscard |
| [in] | g | a population / subpopulation |
| const distribution< double > & ultra::analyzer< I, F >::length_dist | ( | const P & | g | ) | const |
| [in] | g | a population / subpopulation |
|
nodiscard |
| [in] | g | the UID a population / subpopulation |
|
nodiscard |