compute the set of values for the function evaluated at the positions provided, and with the paramaters provided.
Definition at line 384 of file fitting_toolkit.py. 00384 : 00385 "evaluate the fitter's function, providing some convenient glue for passing in data arrays of various shapes" 00386 if params is None: 00387 params=self.funcparams 00388 00389 if xvals is None: 00390 n=self.pointcount 00391 if self.arg_count > 1: 00392 xvals=self.xarray[:,:n] 00393 else: 00394 xvals=self.xarray[0, :n] 00395 elif x_transpose: 00396 xvals = Numeric.transpose(xvals) #allow array sideways to be handled 00397 00398 return self.function(params, xvals) 00399 ##
|