Changeset 2570 for branches


Ignore:
Timestamp:
06/14/12 15:22:52 (12 years ago)
Author:
Takeshi Nakazato
Message:

New Development: No

JIRA Issue: Yes CAS-2816

Ready for Test: Yes

Interface Changes: No

What Interface Changed: Please list interface changes

Test Programs: List test programs

Put in Release Notes: Yes/No

Module(s): Module Names change impacts.

Description: Describe your changes here...

Calculate residual as (data-model) instead to calculate model as
(data-residual) since the later changes result.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hpc33/src/STFitter.cpp

    r2569 r2570  
    394394  chisquared_ = fitter.getChi2();
    395395
    396   residual_.resize();
    397   residual_ =  y_;
    398   fitter.residual(residual_,x_);
     396//   residual_.resize();
     397//   residual_ =  y_;
     398//   fitter.residual(residual_,x_);
    399399  // use fitter.residual(model=True) to get the model
    400400  thefit_.resize(x_.nelements());
    401   // model = data - residual
    402 //   fitter.residual(thefit_,x_,True);
    403   thefit_ = y_ - residual_ ;
     401  fitter.residual(thefit_,x_,True);
     402  // residual = data - model
     403  residual_.resize(x_.nelements());
     404  residual_ = y_ - thefit_ ;
    404405  return true;
    405406}
     
    435436  chisquared_ = fitter.getChi2();
    436437
    437   residual_.resize();
    438   residual_ =  y_;
    439   fitter.residual(residual_,x_);
     438//   residual_.resize();
     439//   residual_ =  y_;
     440//   fitter.residual(residual_,x_);
    440441  // use fitter.residual(model=True) to get the model
    441442  thefit_.resize(x_.nelements());
    442   // model = data - residual
    443 //   fitter.residual(thefit_,x_,True);
    444   thefit_ = y_ - residual_ ;
     443  fitter.residual(thefit_,x_,True);
     444  // residual = data - model
     445  residual_.resize(x_.nelements());
     446  residual_ = y_ - thefit_ ;
    445447  return true;
    446448}
Note: See TracChangeset for help on using the changeset viewer.