Learn R Programming

distr6 (version 1.3.2)

NegIntegers: Set of Negative Integers

Description

The mathematical set of negative integers.

Value

Returns R6 object of class NegIntegers.

Constructor

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

See Also

listSpecialSets

Examples

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

# }

Run the code above in your browser using DataLab