Learn R Programming

simcdm (version 0.1.2)

attribute_bijection: Constructs Unique Attribute Pattern Map

Description

Computes the powers of 2 from \(0\) up to \(K - 1\) for \(K\)-dimensional attribute pattern.

Usage

attribute_bijection(K)

Value

A vec with length \(K\) detailing the power's of 2.

Arguments

K

Number of Attributes.

Author

Steven Andrew Culpepper and James Joseph Balamuta

See Also

attribute_inv_bijection()

Examples

Run this code
## Construct an attribute bijection ----
biject = attribute_bijection(3)

Run the code above in your browser using DataLab