DiscretizedPositiveIntBin#
- class dynode.config.bins.DiscretizedPositiveIntBin(min_value, max_value, name=None)#
Bases:
Bin
Bin with a distinct discretized positive int inclusive min/max.
- __init__(min_value, max_value, name=None)#
Initialize a Discretized bin with inclusive min/max and sensible default name.
Parameters#
- min_valueint
minimum value contained by the bin (inclusive)
- max_valueint
maximum value contained by the bin (inclusive)
- namestr, optional
name of the bin, by default f”{min_value}_{max_value}” if None
Methods
__init__
(min_value, max_value[, name])Initialize a Discretized bin with inclusive min/max and sensible default name.
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
name
- min_value: Annotated[int, Ge(ge=0)]#
- max_value: Annotated[int, Ge(ge=0)]#
- _bin_valid_side() Self #
Assert that min_value <= max_value.
- _abc_impl = <_abc._abc_data object>#
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].