R/RcppExports.R
attribute_inv_gen_bijection.Rd
Converts the class into a bijection.
attribute_inv_gen_bijection(K, M, CL)
K | Number of Attributes |
---|---|
M | Number of Options. |
CL | Class Number from 0 to (2^K)-1. |
Return a matrix containing the class table
James Joseph Balamuta and Steven Andrew Culpepper
## Construct an attribute bijection for M responses ---- inv_biject_ternary = attribute_inv_gen_bijection(5, 3, 2) inv_biject_ternary#> [,1] #> [1,] 0 #> [2,] 0 #> [3,] 0 #> [4,] 0 #> [5,] 2## Binary data inv_biject_binary = attribute_inv_gen_bijection(5, 2, 4) inv_biject_binary#> [,1] #> [1,] 0 #> [2,] 0 #> [3,] 1 #> [4,] 0 #> [5,] 0#> [,1] #> [1,] 0 #> [2,] 0 #> [3,] 1 #> [4,] 0 #> [5,] 0