jupyter_analysis_tools.binning.reBin¶
- class jupyter_analysis_tools.binning.reBin(**kwargs)[source]¶
Bases:
object
all kinds of binning-related functions
Methods
__init__
(**kwargs)binning1D
([qError])An unweighted binning routine.
cleanup
()defines binning edges
outputFilename
(filename)returns an output filename based on the input filename
readFile
(filename)validate
()Applies limits to the data
writeFile
(ofname[, hstrs, append])Attributes
pandasArgs
reBinArgs
- binning1D(qError=None)[source]¶
An unweighted binning routine. imp-version of binning, taking q-bin edges in which binning takes place, and calculates the mean q uncertainty in the bin as well from the relative Q uncertainties provided.
The intensities are sorted across bins of equal size. If provided error is empty, the standard deviation of the intensities in the bins is computed.