00001 00002 // 00003 // P. Sherwood 00004 00005 #ifndef FASTSHOWER_LINEARPROCESSORTESTER_H 00006 #define FASTSHOWER_LINEARPROCESSORTESTER_H 00007 00008 #ifndef FASTSHOWER_ITESTER_H 00009 #include "FastShowerUtils/ITester.h" 00010 #endif 00011 00012 #ifndef FASTSHOWER_TESTSTAT_H 00013 #include "FastShowerUtils/TestStat.h" 00014 #endif 00015 00016 #ifndef STD_VECTOR_H 00017 #define STD_VECTOR_H 00018 #include <vector> 00019 #endif 00020 00021 00022 namespace FastShower{ 00023 class LinearProcessorTester: public ITester{ 00024 00025 public: 00026 LinearProcessorTester(bool verbose):m_verbose(verbose){ 00027 m_testPoints.push_back(-5.); 00028 m_testPoints.push_back(-.001); 00029 m_testPoints.push_back(0.); 00030 m_testPoints.push_back(.001); 00031 m_testPoints.push_back(5.); 00032 00033 m_a.push_back(-100.); 00034 m_a.push_back(-.001); 00035 m_a.push_back(0.); 00036 m_a.push_back(.001); 00037 m_a.push_back(100.); 00038 00039 m_b.push_back(-200.); 00040 m_b.push_back(-.001); 00041 m_b.push_back(0.); 00042 m_b.push_back(.001); 00043 m_b.push_back(200.); 00044 }; 00045 ~LinearProcessorTester(); 00046 00047 virtual TestStat test(); 00048 virtual void results() const ; 00049 00050 private: 00051 TestStat test1(); 00052 TestStat m_ts; 00053 bool m_verbose; 00054 std::vector<double> m_testPoints; 00055 std::vector<double> m_a; 00056 std::vector<double> m_b; 00057 }; 00058 00059 } // end of namespace bracket 00060 #endif 00061 00062 00063 00064 00065