def compute_funcvals (   self,
  xvals = None,
  params = None,
  x_transpose = 0 
)

compute the set of values for the function evaluated at the positions provided, and with the paramaters provided.

Parameters:
xvals An array of abscissas
params An array of the parameters to be used. If None, use whatever the current fit's funcparams are.
x_transpose If False or 0, each point is a column in xvals. If True, each point is a row in xvals.

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     
    ## 


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