Evocosm - A C++ Framework for Evolutionary Computing

Main Index

Created by Scott Robert Ladd at Coyote Gulch Productions.


Public Member Functions | List of all members
libevocosm::fitness_stats< OrganismType > Class Template Reference

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.
 

Detailed Description

template<class OrganismType>
class libevocosm::fitness_stats< OrganismType >

Produces a set of basic statistics from a given population. Used by various scaling, analysis, and reporting algorithms.

Parameters
OrganismTypeThe type of organism in the population

Constructor & Destructor Documentation

template<class OrganismType>
libevocosm::fitness_stats< OrganismType >::fitness_stats ( const vector< OrganismType > &  a_population)
inline

Analyzes a population, find highest and lowest fitness organisms and computing various statistical values.

Parameters
a_populationPopulation ot be analyzed.
template<class OrganismType>
virtual libevocosm::fitness_stats< OrganismType >::~fitness_stats ( )
inlinevirtual

Frees resources.


The documentation for this class was generated from the following file:

© 1996-2005 Scott Robert Ladd. All rights reserved.
HTML documentation generated by Dimitri van Heesch's excellent Doxygen tool.