Ignore:
Timestamp:
Apr 28, 2007, 5:20:40 PM (16 years ago)
Author:
Jari Häkkinen
Message:

Merged log:/branches/0.3.1#838:846 to trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/averager_test.cc

    r831 r848  
    3030#include "yat/utility/vector.h"
    3131
     32#include <cmath>
    3233#include <fstream>
    3334#include <limits>
     
    229230bool equal(const Averager& a, const Averager& b)
    230231{
    231 //  std::cout << (a.n()==b.n()) << std::endl;
     232//  std::cout << (a.n()==b.n()) << std::endl;
    232233//  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()<1e-15)) << std::endl;
     235  return (a.n()==b.n() && a.mean()==b.mean() &&
     236          fabs(a.variance()-b.variance()<1e-15));
    235237}
    236238
Note: See TracChangeset for help on using the changeset viewer.