Take a new sample of the data for resampling/bootstrapping. can be put in the main arrays. Definition at line 474 of file fitting_toolkit.py. 00474 : 00475 "resample() randomly draws a set of points equal in size to the original set from the cached data for bootstrapping" 00476 assert hasattr(self, "saved_xarray"), "resampling not set up yet. Call setup_resampling() first." 00477 ranlist=Numeric.floor(self.get_random_list(self.pointcount)*self.pointcount).astype(Numeric.Int) 00478 self.xarray=Numeric.take(self.saved_xarray, ranlist, -1) #take columns since vectors lie this way 00479 self.yarray=Numeric.take(self.saved_yarray, ranlist) 00480 self.firstpass=1 00481 ##
|