Compute the (trivial) derivatives for a linear combination Reimplemented from fit. Definition at line 747 of file fitting_toolkit.py. 00747 : 00748 if self.firstpass: #may get used more than once if weights are not constant, but no need to recompute 00749 n=self.pointcount 00750 self.funcparams=zeros(self.param_count, self.atype) 00751 dd = zeros((n, self.param_count), self.atype) 00752 if self.arg_count==1: 00753 x=self.xarray[0,:n] 00754 else: 00755 x=self.xarray[:,:n] 00756 for i in range(self.param_count): 00757 dd[:,i]=self.basis[i](i,x) 00758 self.saved_derivs=dd 00759 return self.saved_derivs 00760 ##
|