Learn R Programming

distr6 (version 1.3.3)

SetInterval: R6 Generalised Class for Symbolic Sets and Intervals

Description

A generic SetInterval class primarily used as the parent class to Set and Interval.

Value

Returns an R6 object of class SetInterval.

Constructor

SetInterval$new(symbol, lower, upper, type, class = "numeric", dimension)

Constructor Arguments

Argument Type Details
symbol character String representation of SetInterval.
lower numeric Lower limit of SetInterval.
upper numeric Upper limit of SetInterval.
type character Interval type, one of (), (], [), [].
class character Atomic class, one of "numeric" or "integer".

Public Methods

Accessor Methods Link
type() type.SetInterval
dimension() dimension.SetInterval
max() max.SetInterval
min() min.SetInterval
sup() sup.SetInterval
inf() inf.SetInterval
getSymbol() getSymbol.SetInterval
class() class.SetInterval
Validation Methods Link
liesInSetInterval(x, all = FALSE, bound = FALSE) liesInSetInterval
Representation Methods Link
print() print

Details

Whilst this is not an abstract class, direct construction is generally not advised. Construction should instead be called on 'Set' or 'Interval'.

See Also

Set for R6 Set objects and Interval for R6 Interval objects.