decode | R Documentation |
The function decode converts a binary number with m digits to a real number between the lower and upper bound.
decode(bin, lb, ub, m)
bin |
A binary number |
lb |
Lower bound of real number |
ub |
Upper bound of real number |
m |
Number of the digits of output value. |
This function converts a binary number with m digits to its real equivalent expressed in the range [lb, ub].
Returns the real equivalent of the input number.
Zeynel Cebeci & Erkut Tekeli
encode
x = c(0,1,0,0,0,0,1,1) decode(x, lb=50, ub=250, m=8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.