alphatwirl.binning.Round¶
-
class
alphatwirl.binning.Round(width=1, aboundary=None, min=None, underflow_bin=None, max=None, overflow_bin=None, valid=None)[source]¶ Equal width binning
Parameters: - width (float or int, default 1) – The width.
- aboundary (float or int, optional) – A boundary. If not given,
width/2will be used. - min (float or int, optional) – The lowest bin will be the bin that
minfalls in. If given,__call__(val)returnsunderflow_binif thevalis less than the lower edge of the lowest bin. - underflow_bin (optional) – The underflow bin. When
minis given, the__call__(val)returnsunderflow_binif thevalis less than the lower edge of the lowest bin. - max (float or int, optional) – The highest bin will be the bin that
maxfalls in except whenmaxis one of boundaries. Whenmaxis one of boundaries, the highest bin is the bin whose upper edge ismax. If given,__call__(val)returns the overflow bin if thevalis greater than or equal to the upper edge of the highest bin. - overflow_bin (optional) – The overflow bin if
overflow_binis any value other thanTrue. Ifoverflow_binisTrue, the overflow bin will be the upper edge of the highest bin. Whenmaxis given, the__call__(val)returns the overflow bin if thevalis greater than or equal to the upper edge of the highest bin. - valid (function, optional) – Boolean function to test if value is valid
-
__init__(width=1, aboundary=None, min=None, underflow_bin=None, max=None, overflow_bin=None, valid=None)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__([width, aboundary, min, …])Initialize self. next(bin)