def fit_data (   self,
  xvector,
  yvector,
  weightlist = None,
  xcenter = 0.0 
)

Given a vector of x values and y values, and optional weights, compute the fit.

Definition at line 814 of file fitting_toolkit.py.

00814                                                                       :
00815         "compute the fit of the supplied data, all in one call"
00816         self.pointcount=0 #reset the fitter for easy reuse once set up
00817         self.firstpass=1
00818         self.add_points(xvector, yvector)
00819         self.explicit_weightlist=weightlist
00820         self.xcenter=xcenter
00821         self.compute_fit() #one pass needed, no fancies, since the system is linear
00822 
00823 #a few exemplary (and possibly useful?) examples of subclasses of the fitter
00824 
00825 find_peak_fitter=polynomial_fit(2, pointhint=100) #save this for reuse, so find_peak can be called vey quickly
00826 
##


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