ostk.mathematics.object.RealInterval

class RealInterval(
self: ostk.mathematics.object.RealInterval,
lower_bound: ostk.core.type.Real,
upper_bound: ostk.core.type.Real,
type: ostk::mathematics::object::IntervalBase::Type,
)

Bases: pybind11_object

Methods

clip

closed

contains

Overloaded function.

get_gaps

get_intersection_with

get_lower_bound

get_union_with

get_upper_bound

half_open_left

half_open_right

intersects

is_defined

is_degenerate

logical_and

logical_or

merge

open

sort

to_string

undefined

class Type(self: ostk.mathematics.object.RealInterval.Type, value: int)

Bases: pybind11_object

Members:

Undefined

Closed

Open

HalfOpenLeft

HalfOpenRight

property name
static clip(
intervals: list[ostk.mathematics.object.RealInterval],
clipping_interval: ostk.mathematics.object.RealInterval,
) list[ostk.mathematics.object.RealInterval]
static closed(
lower_bound: ostk.core.type.Real,
upper_bound: ostk.core.type.Real,
) ostk.mathematics.object.RealInterval
contains(*args, **kwargs)

Overloaded function.

  1. contains(self: ostk.mathematics.object.RealInterval, real: ostk.core.type.Real) -> bool

  2. contains(self: ostk.mathematics.object.RealInterval, interval: ostk.mathematics.object.RealInterval) -> bool

static get_gaps(
intervals: list[ostk.mathematics.object.RealInterval],
bound: ostk.mathematics.object.RealInterval = RealInterval.Undefined(),
) list[ostk.mathematics.object.RealInterval]
get_intersection_with(
self: ostk.mathematics.object.RealInterval,
interval: ostk.mathematics.object.RealInterval,
) ostk.mathematics.object.RealInterval
get_lower_bound(
self: ostk.mathematics.object.RealInterval,
) ostk.core.type.Real
get_union_with(
self: ostk.mathematics.object.RealInterval,
interval: ostk.mathematics.object.RealInterval,
) ostk.mathematics.object.RealInterval
get_upper_bound(
self: ostk.mathematics.object.RealInterval,
) ostk.core.type.Real
static half_open_left(
lower_bound: ostk.core.type.Real,
upper_bound: ostk.core.type.Real,
) ostk.mathematics.object.RealInterval
static half_open_right(
lower_bound: ostk.core.type.Real,
upper_bound: ostk.core.type.Real,
) ostk.mathematics.object.RealInterval
intersects(
self: ostk.mathematics.object.RealInterval,
interval: ostk.mathematics.object.RealInterval,
) bool
is_defined(self: ostk.mathematics.object.RealInterval) bool
is_degenerate(self: ostk.mathematics.object.RealInterval) bool
static logical_and(
intervals_1: list[ostk.mathematics.object.RealInterval],
intervals_2: list[ostk.mathematics.object.RealInterval],
) list[ostk.mathematics.object.RealInterval]
static logical_or(
intervals_1: list[ostk.mathematics.object.RealInterval],
intervals_2: list[ostk.mathematics.object.RealInterval],
) list[ostk.mathematics.object.RealInterval]
static merge(
intervals: list[ostk.mathematics.object.RealInterval],
) list[ostk.mathematics.object.RealInterval]
static open(
lower_bound: ostk.core.type.Real,
upper_bound: ostk.core.type.Real,
) ostk.mathematics.object.RealInterval
static sort(
intervals: list[ostk.mathematics.object.RealInterval],
by_lower_bound: bool = True,
ascending: bool = True,
) list[ostk.mathematics.object.RealInterval]
to_string(
self: ostk.mathematics.object.RealInterval,
) ostk.core.type.String
static undefined() ostk.mathematics.object.RealInterval