00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ATLFAST_SIMPLETESTSTATISTICADIFF_H
00017 #define ATLFAST_SIMPLETESTSTATISTICADIFF_H
00018 #include <string>
00019 #include "AtlfastCode/SimpleTestStatistic.h"
00020 namespace Atlfast {
00024 class SimpleTestStatisticAbsDiff{
00025 public:
00026
00027 SimpleTestStatisticAbsDiff(SimpleTestStatistic* s) {
00028 m_val =s->val();
00029 }
00030
00031 bool operator()(const SimpleTestStatistic& s) const{
00032 return ( abs(s.val() - m_val) );
00033 }
00034
00035 bool operator()(const SimpleTestStatistic* s) const{
00036 return ( abs(s->val() - m_val) );
00037 }
00038 private:
00039 double m_val;
00040 };
00041 }
00042 #endif
00043