R/RcppExports.R
attribute_inv_bijection.Rd
Convert an integer between \(0\) and \(2^{K-1}\) to \(K\)-dimensional attribute pattern.
attribute_inv_bijection(K, CL)
K | Number of Attributes. |
---|---|
CL | An |
A \(K\)-dimensional vector with an attribute pattern corresponding
to CL
.
Steven Andrew Culpepper and James Joseph Balamuta
## Construct an attribute inversion bijection ---- inv_biject1 = attribute_inv_bijection(5, 1) inv_biject1#> [,1] #> [1,] 0 #> [2,] 0 #> [3,] 0 #> [4,] 0 #> [5,] 1inv_biject2 = attribute_inv_bijection(5, 2) inv_biject2#> [,1] #> [1,] 0 #> [2,] 0 #> [3,] 0 #> [4,] 1 #> [5,] 0