stddev test
This commit is contained in:
parent
930c21f465
commit
aacba6f813
4 changed files with 20 additions and 7 deletions
|
|
@ -2,11 +2,23 @@
|
|||
// t-moFitnessNeighborStat.cpp
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#include ".h"
|
||||
#include <eo>
|
||||
//#include "eoReal.h"
|
||||
#include "continuator/moStdFitnessNeighborStat.h"
|
||||
#include "neighborhood/moRealNeighbor.h"
|
||||
#include "neighborhood/moRealNeighborhood.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
typedef eoReal< eoMinimizingFitness > EOT;
|
||||
typedef moRealNeighbor< EOT > Neighbor;
|
||||
|
||||
int main(int ac, char** av)
|
||||
{
|
||||
|
||||
moNeighborhoodStat<Neighbor> nhStat
|
||||
moStdFitnessNeighborStat<Neighbor> stat(nhStat);
|
||||
EOT solution(2, 5);
|
||||
stat(solution);
|
||||
//assert(stat.value() == 1);
|
||||
std::cout << "ok " << stat.value() << endl;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue