Evaluate residuals, and compute proper chi^2 with weights. Definition at line 506 of file fitting_toolkit.py. 00506 : 00507 self.residuals=self.yarray[:self.pointcount]-self.funcvals 00508 self.chi2=float(dot(self.residuals,self.weights_multiply(self.residuals))) 00509 self.reduced_chi2=float(self.chi2/(self.pointcount-self.param_count)) 00510 ##
|