Learn R Programming

distr6 (version 1.1.0)

PosIntegers: Set of Positive Integers

Description

The mathematical set of positive integers.

Value

Returns R6 object of class PosIntegers.

Constructor

PosIntegers$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 PosIntegers is defined as the set of positive or non-negative numbers that can be written without a fractional component, i.e. $$PosIntegers = \{0, 1, 2, 3,...\}$$ \(0\) may or may not be included (depending on the zero argument).

See Also

listSpecialSets

Examples

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

# }

Run the code above in your browser using DataLab