Changeset 840 for branches/0.3.1/test
 Timestamp:
 Apr 25, 2007, 9:55:37 AM (16 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/0.3.1/test/averager_test.cc
r831 r840 30 30 #include "yat/utility/vector.h" 31 31 32 #include <cmath> 32 33 #include <fstream> 33 34 #include <limits> … … 229 230 bool equal(const Averager& a, const Averager& b) 230 231 { 231 // 232 // std::cout << (a.n()==b.n()) << std::endl; 232 233 // std::cout << (a.mean()==b.mean()) << std::endl; 233 // std::cout << (a.variance()==b.variance()) << std::endl; 234 return (a.n()==b.n() && a.mean()==b.mean() && a.variance()==b.variance()); 234 // std::cout << (fabs(a.variance()b.variance()<1e15)) << std::endl; 235 return (a.n()==b.n() && a.mean()==b.mean() && 236 fabs(a.variance()b.variance()<1e15)); 235 237 } 236 238
Note: See TracChangeset
for help on using the changeset viewer.