inv_bijectionvector: Convert integer to attribute pattern

View source: R/RcppExports.R

inv_bijectionvectorR Documentation

Convert integer to attribute pattern

Description

Based on the bijective relationship between natural numbers and sum of powers of two, convert integer between 0 and 2^K-1 to K-dimensional attribute pattern.

Usage

inv_bijectionvector(K, CL)

Arguments

K

An int for the number of attributes

CL

An int between 0 and 2^K-1

Value

A vec of the K-dimensional attribute pattern corresponding to CL.

Examples

inv_bijectionvector(4,0)

hmcdm documentation built on March 31, 2023, 8:07 p.m.