00001 00010 #ifndef __HEURISTIC_AVERAGE_H__ 00011 #define __HEURISTIC_AVERAGE_H__ 00012 00013 #include "Heuristic.h" 00014 00019 class HeuristicAverage : public Heuristic 00020 { 00021 public: 00027 HeuristicAverage(SimulationStatus *status); 00028 00034 char * GetName() { return "Average"; } 00035 00043 float Analyze(unsigned int participant); 00044 00045 protected: 00046 00055 long AverageHitTime(unsigned int participant, unsigned int sampleSize); 00056 00057 private: 00058 long lastTimes[MAX_PARTICIPANTS]; 00059 }; 00060 00061 #endif /* __HEURISTIC_AVERAGE_H__ */