Learn R Programming

distr6 (version 1.1.0)

PosReals: Set of Positive Reals

Description

The mathematical set of positive real numbers.

Value

Returns R6 object of class PosReals.

Constructor

PosReals$new(dim = 1, zero = FALSE)

Constructor Arguments

Argument Type Details
dim numeric Dimension of the set.
zero = FALSE logical If TRUE, zero is included in the set.

Details

The set of Positive Reals is defined as the union of the set of positive rationals and positive irrationals, i.e. $$PosReals = I^+ \cup Q^+$$ where \(I^+\) is the set of positive irrationals and \(Q^+\) is the set of positive rationals.

\(0\) may or may not be included (depending on the zero argument).

See Also

listSpecialSets

Examples

Run this code
# NOT RUN {
PosReals$new()
PosReals$new(zero = TRUE)
PosReals$new(dim = 2)

# }

Run the code above in your browser using DataLab