Ignore:
Timestamp:
Sep 30, 2007, 2:50:10 AM (16 years ago)
Author:
Peter
Message:

Sorry this commit is a bit to big.

Adding a yat_assert. The yat assert are turned on by providing a
'-DYAT_DEBUG' flag to preprocessor if normal cassert is turned
on. This flag is activated for developers running configure with
--enable-debug. The motivation is that we can use these yat_asserts in
header files and the yat_asserts will be invisible to the normal user
also if he uses C-asserts.

added output operator in DataLookup2D and removed output operator in
MatrixLookup?

Removed template function add_values in Averager and weighted version

Added function to AveragerWeighted? taking iterator to four ranges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/averager_test.cc

    r887 r916  
    141141  theplu::yat::utility::vector w(3,1);
    142142  theplu::yat::statistics::AveragerWeighted aw;
    143   aw.add_values(x,w);
     143  add(aw, x.begin(), x.end(), w.begin());
    144144  a.reset();
    145   a.add_values(x);
     145  add(a, x.begin(), x.end());
    146146  const double tol=std::numeric_limits<double>().round_error();
    147147  if (!equal(a,aw,tol,error)){
     
    166166  aw2->reset();
    167167  w*=17;
    168   aw2->add_values(x,w);
     168  add(*aw2, x.begin(), x.end(), w.begin());
    169169  if (!equal(aw,*aw2,tol,error)){
    170170    *error << "error: AveragerWeighted rescaling weights "
Note: See TracChangeset for help on using the changeset viewer.