Compute the derivatives. Reimplemented from fit. Definition at line 800 of file fitting_toolkit.py. 00800 : 00801 if self.firstpass: #may get used more than once if weights are not constant, but no need to recompute 00802 self.funcparams=zeros(self.param_count, self.atype) 00803 n=self.pointcount 00804 dd = zeros((n, self.param_count), self.atype) 00805 dd[:,0]=1.0 00806 xc=self.xarray[0,:n]-self.xcenter 00807 for i in range(1,self.param_count): 00808 dd[:,i]=dd[:,i-1]*xc 00809 self.saved_derivs=dd 00810 return self.saved_derivs 00811 ##
|