powered by
The function CalcM calculates the number of bits in the binary representation of the integer vector
calcM(ub, ...)
A vector containing upper bounds
Further arguments passed to or from other methods.
A vector of the numbers of bits for binary representation of an integer vector.
This function uses the upper bounds of the integer vector to calculate the number of bits in the binary representation of an integer vector.
encode4int
# NOT RUN { ub = c(10, 10, 10) calcM(ub) # }
Run the code above in your browser using DataLab