This prepares the fitter for doing resampling (bootstrapping) to estimate the true shape of the chi^2 surface. Makes shadow copies of the main data arrays so they resampled data Definition at line 441 of file fitting_toolkit.py. 00441 : 00442 "setup_resampling() caches the 'real' arrays of x and y, so they can be resampled for bootstrapping, and seeds a random generator" 00443 assert not hasattr(self, "saved_xarray"), "Don't even think of initializing the resampling more than once!" 00444 self.saved_xarray=array(self.xarray[:,:self.pointcount]) #these must be copies, not slices! 00445 self.saved_yarray=array(self.yarray[:self.pointcount]) 00446 self.initialize_random_generator() 00447 ##
|