Changeset 775 for trunk/test


Ignore:
Timestamp:
Mar 2, 2007, 12:53:03 AM (15 years ago)
Author:
Jari Häkkinen
Message:

Fixes #200.

Location:
trunk/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/averager_test.cc

    r680 r775  
    152152     
    153153  aw2->reset();
    154   w.scale(17);
     154  w*=17;
    155155  aw2->add_values(x,w);
    156156  if (!equal(aw,*aw2,tol,error)){
     
    208208     
    209209  apw2->reset();
    210   w.scale(17);
     210  w*=17;
    211211  apw2->add_values(x,y,w,w);
    212212  if (!equal(apw,*apw2,tol,error)){
  • trunk/test/regression_test.cc

    r759 r775  
    316316  double standard_error2 = wr.standard_error2(2000);
    317317
    318   w.scale(2);
     318  w*=2;
    319319  wr.fit(x,y,w);
    320320  if (fabs(wr.predict(2000)-predict)>10e-11){
     
    459459  double standard_error2 = mdw.standard_error2(z);
    460460
    461   w.scale(2);
     461  w*=2;
    462462  mdw.fit(data,y,w);
    463463  if (fabs(mdw.predict(z)-predict)>10e-10){
Note: See TracChangeset for help on using the changeset viewer.