HalfBounded [abstract class]

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

This abstract class handles half-bounded intervals of real numbers.


class splinekit.interval.half_bounded.HalfBounded(threshold: float)

Bases: ABC

A half-bounded interval that depends on a threshold.


property threshold: float

The threshold of this half-bounded interval.

Returns:

The threshold.

Return type:

float


abstractmethod static __new__(cls, threshold: float) Self

Creates a half-bounded interval that contains all numbers related to a threshold.

Parameters:

threshold – The threshold.

Returns:

A half-bounded interval.

Return type:

Interval