def derivs (   self  ) 

Compute derivatives by default numerical differentiation for all non-frozen parameters, This must be overridden for fits which have analytic derivatives. See example in class documentation. Note in particular that the array returned is organized with all the values for a point in each row. The columns correspond to the parameters.

Reimplemented in linear_combination_fit, polynomial_fit, gauss_fit, gauss_fit_2d, and gauss_deriv_fit.

Definition at line 417 of file fitting_toolkit.py.

00417                     : 
00418         "default deriv is automatic numeric derivatives, override this for analytic derivatives"
00419         n=self.pointcount
00420         fxarray=zeros((n, self.param_count), self.atype)
00421         for i in range(self.param_count):
00422             if not self.frozen[i]:
00423                 fxarray[:,i]=self.numeric_deriv(i, self.deriv_step[i])
00424         return fxarray
00425     


Generated on Wed Nov 21 10:18:32 2007 for analysis by  doxygen 1.5.4