Bounded [abstract class]

The splinekit.interval.bounded module provides the abstract base class from which concrete classes of bounded intervals are derived.

This abstract class handles bounded intervals of real numbers.


class splinekit.interval.bounded.Bounded(bounds: Tuple[float, float])

Bases: ABC

A bounded interval that depends on a pair of endpoints.


property bounds: Tuple[float, float]

The two endpoints of this interval.

Returns:

  • tuple of float – The left- and right-endpoint of this interval, in that order.

  • —-

property leftbound: float

The infimum of this bounded interval.

Returns:

The left endpoint of this interval.

Return type:

float


property rightbound: float

The supremum of this bounded interval.

Returns:

The right endpoint of this interval.

Return type:

float


abstractmethod static __new__(cls, bounds: Tuple[float, float]) Self

Creates a bounded interval that contains all numbers related to a lower bound and an upper bound.

Parameters:

bounds – The tuple (infimum, supremum).

Returns:

A bounded interval.

Return type:

Interval