Interval#
- class data_morph.bounds.interval.Interval(bounds: Iterable[Number], inclusive: bool = False)[source]#
Bases:
object
Class representing a range of numeric values.
- Parameters:
bounds (Iterable[numbers.Number]) – A 2-dimensional numeric iterable.
inclusive (bool, default
False
) – Whether the bounds include the endpoints. Default is exclusive.
- adjust_bounds(value: Number) None [source]#
Adjust bound range.
- Parameters:
value (numbers.Number) – The amount to change the range by (half will be applied to each end).