Public Member Functions

StatCalc Class Reference
[Evolutionary FrameworkPopulation]

Statistics calculation class. More...

#include <StatCalc.h>

Inheritance diagram for StatCalc:
Operator

List of all members.

Public Member Functions

bool operate (StateP)
 perform the designated operation
bool operate (const std::vector< IndividualP > &)
void registerParameters (StateP)
 Register parameters with the Registry. Called before Operator::initialize.
bool initialize (StateP)
 Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used!
bool update (std::vector< double >)
void log (int generation=-1)
std::vector< double > getStats (int generation=-1)
void output (uint step)
double getFitnessMin (int generation=-1)
double getFitnessMax (int generation=-1)

Detailed Description

Statistics calculation class.

Definition at line 8 of file StatCalc.h.


Member Function Documentation

double StatCalc::getFitnessMax ( int  generation = -1  ) 

Get maximum fitness value for a given generation.

Definition at line 50 of file StatCalc.cpp.

double StatCalc::getFitnessMin ( int  generation = -1  ) 

Get minimum fitness value for a given generation.

Definition at line 42 of file StatCalc.cpp.

std::vector< double > StatCalc::getStats ( int  generation = -1  ) 

Get statistic values for a given generation.

Definition at line 142 of file StatCalc.cpp.

bool StatCalc::initialize ( StateP   )  [virtual]

Perform initialization. Called before Operator::operate. By default, if the return value is false, the operator will not be used!

Returns:
initialization success

Reimplemented from Operator.

Definition at line 19 of file StatCalc.cpp.

void StatCalc::log ( int  generation = -1  ) 

Log statistics.

Definition at line 159 of file StatCalc.cpp.

bool StatCalc::operate ( const std::vector< IndividualP > &  pool  ) 

Calculate basic fitness statistics on given individual pool.

Definition at line 58 of file StatCalc.cpp.

bool StatCalc::update ( std::vector< double >  stats  ) 

Merge current statistics with additional individual set's statistics.

Definition at line 102 of file StatCalc.cpp.


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