Created by Scott Robert Ladd at Coyote Gulch Productions.
Population fitness statistics. More...
#include <stats.h>
Public Member Functions | |
| fitness_stats (const vector< OrganismType > &a_population) | |
| Construct a statistics object for a specific population. More... | |
| virtual | ~fitness_stats () |
| Destructor. More... | |
| double | getMin () |
| Get the minimum fitness value for analyzed population. | |
| double | getMax () |
| Get the maximum fitness value for analyzed population. | |
| double | getMean () |
| Get the mean (average) fitness value for analyzed population. | |
| double | getVariance () |
| Get the fitness variance for analyzed population. | |
| double | getSigma () |
| Get the standard deviation (sigma) value for fitness. | |
| OrganismType | getBest () |
| Get the organism with the highest fitness for analyzed population. | |
| OrganismType | getWorst () |
| Get the organism with the lowest fitness for analyzed population. | |
Produces a set of basic statistics from a given population. Used by various scaling, analysis, and reporting algorithms.
| OrganismType | The type of organism in the population |
|
inline |
Analyzes a population, find highest and lowest fitness organisms and computing various statistical values.
| a_population | Population ot be analyzed. |
|
inlinevirtual |
Frees resources.
© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.