Learn R Programming

eDMA (version 1.5-3)

PowerSet: Build the power set of the values {0,1,2,...,iK}.

Description

Build the power set of the values {0,1,2,...,iK}.

Usage

PowerSet(iK)

Arguments

iK

numeric an integer value indicating the end of the series {0,1,2,...,iK}.

Value

, 4 An object of the class list.

Details

The function returns a list of numeric vectors with the indices representing all the 2^iK subsets. The empty subset {} is represented by the numeric(0) vector.

Examples

Run this code
# NOT RUN {
library(eDMA)
PowerSet(5)

# }

Run the code above in your browser using DataLab