26 #ifndef GRALE_FITNESSHISTORY_H
28 #define GRALE_FITNESSHISTORY_H
30 #include "graleconfig.h"
31 #include <errut/errorbase.h>
37 class GRALE_IMPORTEXPORT FitnessHistory :
public errut::ErrorBase
40 FitnessHistory(
int historySize,
float threshold) { reset(historySize, threshold); }
43 void reset(
int historySize,
float threshold);
44 void reset(
float threshold) { reset(m_fitnessHistory.size(), threshold); }
45 void processValue(
float x);
48 void getDebugInfo(
float *pCurValue,
float *pRefValue,
float *pConvergence,
float *pThresHold);
50 std::vector<float> m_fitnessHistory;
51 int m_currentPosition;
58 #endif // GRALE_FITNESSHISTORY_H