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

View source: R/RcppExports.R

PowerSetR Documentation

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

Description

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

Usage

    PowerSet(iK)

Arguments

iK

numeric an integer between 0 and 20 giving the number of elements in the series {0,1,2,...,iK-1}.

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.

Value

An object of the class list.

Author(s)

Leopoldo Catania

Examples


library(eDMA)
PowerSet(5)


eDMA documentation built on Oct. 19, 2026, 5:07 p.m.