Degenerate [abstract class]

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

This abstract class handles degenerate intervals of real numbers.


class splinekit.interval.degenerate.Degenerate(value: float)

Bases: ABC

Notes

Subclasses that implement this class have the property value.


property value: float

The value contained by this degenerate interval.

Returns:

The value.

Return type:

float


static __new__(cls, value: float) Self

Creates a degenerate interval that contains exactly one number.

Parameters:

value – The number contained by this degenerate interval.

Returns:

A degenerate interval.

Return type:

Interval