10 { FIT_MIN, FIT_MAX, FIT_AVG, FIT_DEV, STAT_SIZE, STAT_TIME, STAT_EVAL, FIT_LOW, FIT_HIGH };
23 std::vector<double> average_;
24 std::vector<double> stdDev_;
25 std::vector<double> max_;
26 std::vector<double> min_;
27 std::vector<uint> sampleSize_;
28 std::vector<uint> time_;
29 std::vector<uint> evaluations_;
34 std::string statsFileName_;
35 std::ofstream statsFile_;
43 bool operate(
const std::vector<IndividualP>&);
46 bool update(std::vector<double>);
47 void log(
int generation = -1);
48 std::vector<double>
getStats(
int generation = -1);
49 void output(uint step);
60 nEvaluations_ += eval;
68 { nEvaluations_ = eval; }
74 {
return nEvaluations_; }
89typedef boost::shared_ptr<StatCalc> StatCalcP;
Statistics calculation class.
bool initialize(StateP)
Perform initialization. Called before Operator::operate. By default, if the return value is false,...
double getHighestFitness()
double getFitnessMax(int generation=-1)
double getLowestFitness()
double getFitnessMin(int generation=-1)
void registerParameters(StateP)
Register parameters with the Registry. Called before Operator::initialize.
void log(int generation=-1)
void setEvaluations(uint eval)
bool update(std::vector< double >)
void copyStats(StatCalcP)
uint increaseEvaluations(uint eval=1)
std::vector< double > getStats(int generation=-1)
bool operate(StateP)
perform the designated operation