Difference between revisions of "Rebin Functions"
Jump to navigation
Jump to search
Line 17: | Line 17: | ||
== Rebin Functions == | == Rebin Functions == | ||
+ | These functions change the binning of histogram data in datasets to coincide with a given bin width and between given limits. Different sections of the data can be rebinned with different widths - this is useful if some sections of data require more detail than others. | ||
+ | |||
+ | |||
+ | <pre>>> rebin_x(ww, [xlo1, dx1, xhi1, xlo2, dx2, xhi2, ...]) | ||
+ | >> rebin_y(ww, [ylo1, dy1, yhi1, ylo2, dy2, yhi2, ...]) | ||
+ | >> rebin_xy(ww, [xlo1, dx1, xhi1, xlo2, dx2, xhi2, ...], [ylo1, dy1, yhi1, ylo2, dy2, yhi2, ...])</pre> | ||
+ | |||
+ | * Input is an [[IXTdataset_2d]] object | ||
+ | * Output is an [[IXTdataset_2d]] object | ||
+ | * Requires dataset to contain histogram data | ||
+ | * Changes x bins so that the bin size between xlo1 and xhi1 are dx1, between xlo2 and xhi2 are dx2 etc. | ||
+ | * Changes y bins so that the bin size between ylo1 and yhi1 are dy1, between ylo2 and yhi2 are dy2 etc. | ||
+ | * Only keeps data between the ranges of xlo and xhi | ||
+ | * Re-evaluates signal data to coincide with the new bins | ||
+ | |||
+ | <pre>>>rebin(w, [xlo1, dx1, xhi1, xlo2, dx2, xhi2, ...])</pre> | ||
+ | |||
+ | * Input is an [[IXTdataset_1d]] object | ||
+ | * Output is an [[IXTdataset_1d]] object | ||
+ | * Requires dataset to contain histogram data | ||
+ | * Changes x bins so that the bin size between xlo1 and xhi1 are dx1, between xlo2 and xhi2 are dx2 etc. | ||
+ | * Only keeps data between the ranges of xlo and xhi | ||
+ | * Re-evaluates signal data to coincide with the new bins | ||
== Rebunch Functions == | == Rebunch Functions == | ||
== Regroup Functions == | == Regroup Functions == |
Revision as of 17:06, 17 March 2008
Rebin functions change the way in which the data is binned, but should not effect the data itself. For instance, one might rebin data from a low resolution run into wider bins.
These functions are
>> wout = rebin(w,[xlo, dx, xhi]) >> wwout = rebin_x(ww,[xlo, dx, xhi]) >> wwout = rebin_y(ww,[ylo, dy, yhi]) >> wwout = rebin_xy(ww,[xlo, dx, xhi], [ylo, dy, yhi]) >> wout = rebunch(w, nbins) >> wwout = rebunch_x(w, nbins) >> wwout = rebunch_y(w, nbins) >> wwout = rebunch_xy(w, xbins, ybins) >> wout = regroup(w, [xlo, dx, xhi]) >> wwout = regroup_x(ww, [xlo, dx, xhi]) >> wwout = regroup_y(ww, [ylo, dy, yhi]) >> wwout = regroup_xy(ww, [xlo, dx, xhi], [ylo, dy, yhi])
Rebin Functions
These functions change the binning of histogram data in datasets to coincide with a given bin width and between given limits. Different sections of the data can be rebinned with different widths - this is useful if some sections of data require more detail than others.
>> rebin_x(ww, [xlo1, dx1, xhi1, xlo2, dx2, xhi2, ...]) >> rebin_y(ww, [ylo1, dy1, yhi1, ylo2, dy2, yhi2, ...]) >> rebin_xy(ww, [xlo1, dx1, xhi1, xlo2, dx2, xhi2, ...], [ylo1, dy1, yhi1, ylo2, dy2, yhi2, ...])
- Input is an IXTdataset_2d object
- Output is an IXTdataset_2d object
- Requires dataset to contain histogram data
- Changes x bins so that the bin size between xlo1 and xhi1 are dx1, between xlo2 and xhi2 are dx2 etc.
- Changes y bins so that the bin size between ylo1 and yhi1 are dy1, between ylo2 and yhi2 are dy2 etc.
- Only keeps data between the ranges of xlo and xhi
- Re-evaluates signal data to coincide with the new bins
>>rebin(w, [xlo1, dx1, xhi1, xlo2, dx2, xhi2, ...])
- Input is an IXTdataset_1d object
- Output is an IXTdataset_1d object
- Requires dataset to contain histogram data
- Changes x bins so that the bin size between xlo1 and xhi1 are dx1, between xlo2 and xhi2 are dx2 etc.
- Only keeps data between the ranges of xlo and xhi
- Re-evaluates signal data to coincide with the new bins