one_hot_cpp | R Documentation |
Given a natural number, return the natural number equivalent to its one-hot encoding. Instead of pow, the '<<' operator will be used. Examples: 3 -> 100 -> 4, 5 -> 10000 -> 16
one_hot_cpp(nat)
nat |
the natural number to convert |
the converted number
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.