Changeset 583


Ignore:
Timestamp:
May 9, 2006, 3:55:30 PM (16 years ago)
Author:
Markus Ringnér
Message:

Forgot this one in last check in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/averager_test.cc

    r499 r583  
    9797  theplu::gslapi::vector w(3,1);
    9898  theplu::statistics::AveragerWeighted aw;
    99   aw.add(x,w);
     99  aw.add_values(x,w);
    100100  a.reset();
    101   a.add(x);
     101  a.add_values(x);
    102102  const double tol=std::numeric_limits<double>().round_error();
    103103  if (!equal(a,aw,tol,error)){
     
    122122  aw2->reset();
    123123  w.scale(17);
    124   aw2->add(x,w);
     124  aw2->add_values(x,w);
    125125  if (!equal(aw,*aw2,tol,error)){
    126126    *error << "error: AveragerWeighted rescaling weights "
     
    134134  AveragerPair ap;
    135135  for (int i=0; i<10; i++)
    136     ap.add(i,i);
     136    ap.add(static_cast<double>(i),i);
    137137  if (fabs(ap.correlation()-1)>tol){
    138138    ok=false;
     
    154154  theplu::gslapi::vector y(3,0);
    155155  x(0)=0; x(1)=0; x(2)=2;
    156   apw.add(x,y,w,w);
     156  apw.add_values(x,y,w,w);
    157157  ap.reset();
    158   ap.add(x,y);
     158  ap.add_values(x,y);
    159159  if (!equal(ap,apw,tol,error)){
    160160    *error << "error: AveragerPairWeighted with unitary weights should "
     
    178178  apw2->reset();
    179179  w.scale(17);
    180   apw2->add(x,y,w,w);
     180  apw2->add_values(x,y,w,w);
    181181  if (!equal(apw,*apw2,tol,error)){
    182182    *error << "error: AveragerWeighted rescaling weights "
Note: See TracChangeset for help on using the changeset viewer.