Learn R Programming

eDMA (version 1.5-4)

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)

Value

, 4 An object of the class list.

Arguments

iK

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

Author

Leopoldo Catania & Nima Nonejad

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

library(eDMA)
PowerSet(5)

Run the code above in your browser using DataLab