Changeset 2570
- Timestamp:
- 06/14/12 15:22:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hpc33/src/STFitter.cpp
r2569 r2570 394 394 chisquared_ = fitter.getChi2(); 395 395 396 residual_.resize();397 residual_ = y_;398 fitter.residual(residual_,x_);396 // residual_.resize(); 397 // residual_ = y_; 398 // fitter.residual(residual_,x_); 399 399 // use fitter.residual(model=True) to get the model 400 400 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_ ; 404 405 return true; 405 406 } … … 435 436 chisquared_ = fitter.getChi2(); 436 437 437 residual_.resize();438 residual_ = y_;439 fitter.residual(residual_,x_);438 // residual_.resize(); 439 // residual_ = y_; 440 // fitter.residual(residual_,x_); 440 441 // use fitter.residual(model=True) to get the model 441 442 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_ ; 445 447 return true; 446 448 }
Note:
See TracChangeset
for help on using the changeset viewer.