boost_histogram#
boost_histogram.axis#
- class boost_histogram.axis.AxesTuple(_iterable: Iterable[Axis])#
Bases:
tuple- bin(*indexes: float) tuple[float, ...]#
Return the edges of the bins as a tuple for a continuous axis or the bin value for a non-continuous axis, when given an index.
- property centers: ArrayTuple#
- property edges: ArrayTuple#
- index(*values: float) tuple[int, ...]#
Return the fractional index(es) given a value (or values) on the axis.
- value(*indexes: float) tuple[float, ...]#
Return the value(s) given an (fractional) index (or indices).
- property widths: ArrayTuple#
- class boost_histogram.axis.Axis(ax: Any, metadata: dict[str, Any] | None, __dict__: dict[str, Any] | None)#
Bases:
object- bin(index: float) int | str | tuple[float, float]#
Return the edges of the bins as a tuple for a continuous axis or the bin value for a non-continuous axis, when given an index.
- class boost_histogram.axis.Boolean(*, metadata: Any = None, __dict__: dict[str, Any] | None = None)#
Bases:
Axis
- class boost_histogram.axis.IntCategory(categories: Iterable[int], *, metadata: Any = None, growth: bool = False, overflow: bool = True, __dict__: dict[str, Any] | None = None)#
Bases:
BaseCategory
- class boost_histogram.axis.Integer(start: int, stop: int, *, metadata: Any = None, underflow: bool = True, overflow: bool = True, growth: bool = False, circular: bool = False, __dict__: dict[str, Any] | None = None)#
Bases:
Axis
- class boost_histogram.axis.Regular(bins: int, start: float, stop: float, *, metadata: Any = None, underflow: bool = True, overflow: bool = True, growth: bool = False, circular: bool = False, transform: AxisTransform | None = None, __dict__: dict[str, Any] | None = None)#
Bases:
Axis- property transform: AxisTransform | None#
- class boost_histogram.axis.StrCategory(categories: Iterable[str], *, metadata: Any = None, growth: bool = False, overflow: bool = True, __dict__: dict[str, Any] | None = None)#
Bases:
BaseCategory
boost_histogram.axis.transform#
- class boost_histogram.axis.transform.Function(forward: Any, inverse: Any, *, convert: Any = None, name: str = '')#
Bases:
AxisTransform
- class boost_histogram.axis.transform.Pow(power: float)#
Bases:
AxisTransform