stddev test

This commit is contained in:
LPTK 2013-06-13 11:26:15 +02:00
commit aacba6f813
4 changed files with 20 additions and 7 deletions

View file

@ -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;
}