Updated eoStat.h to also "do the right thing" when confronted with pareto style fitness

This commit is contained in:
maartenkeijzer 2001-03-20 14:34:07 +00:00
commit 9bbac485f9
2 changed files with 134 additions and 15 deletions

View file

@ -64,10 +64,14 @@ public :
virtual void operator()(const vector<const EOT*>& _popPters)
{
value().resize(_popPters.size());
for (unsigned i=0; i<_popPters.size(); i++)
{
value()[i] = _popPters[i]->fitness()[objective];
}
}
private:
unsigned int objective; // The objective we're storing
};
#endif