NotBelow [class]
The class splinekit.interval.NotBelow is the concrete class that handles the left-bounded half-bounded intervals that are not left-open.
This concrete class honors Interval and HalfBounded; it handles
left-bounded intervals not below a finite real number.
- class splinekit.interval.not_below.NotBelow(threshold: float)
Bases:
Interval,HalfBoundedThe right-unbounded interval \(\{x\in{\mathbb{R}}|x\geq x_{0}\}=[x_{0},\infty).\)
- property infimum: float
self.threshold
- property supremum: float
float("inf")
- property isleftopen: bool
False
- property isrightopen: bool
True
- property isopen: bool
False
- property ishalfopen: bool
True
- property isclosed: bool
True
- property isleftbounded: bool
True
- property isrightbounded: bool
False
- property ishalfbounded: bool
True
- property isbounded: bool
False
- property isdegenerate: bool
False
- property isproper: bool
True
- property interior: Self
Above(self.threshold)
- property closure: Self
NotBelow(self.threshold)
- property diameter: float
float("inf")
- property midpoint: float
float("nan")
- sortorder() float
self.threshold
- __contains__(x: float) bool
math.isfinite(x) and (self._threshold <= x)
- static __new__(cls, threshold: float) Self
Creates the right-unbounded interval \(\{x\in{\mathbb{R}}|x\geq x_{0}\}=[x_{0},\infty)\) that contains all numbers that are not smaller than the threshold \(x_{0}.\)
- Parameters:
threshold – The inclusive threshold above which every number belongs to this interval.
- Returns:
A
NotBelowinterval ifthresholdis a finite number;RR()ifthreshold == float("-inf"); and theEmptyinterval otherwise.- Return type: