Learn R Programming

adana (version 1.1.0)

calcM: Calculate the number of bits in the binary representation of the integer vector

Description

The function CalcM calculates the number of bits in the binary representation of the integer vector

Usage

calcM(ub, ...)

Arguments

ub

A vector containing upper bounds

Further arguments passed to or from other methods.

Value

A vector of the numbers of bits for binary representation of an integer vector.

Details

This function uses the upper bounds of the integer vector to calculate the number of bits in the binary representation of an integer vector.

See Also

encode4int

Examples

Run this code
# NOT RUN {
ub = c(10, 10, 10)
calcM(ub)
# }

Run the code above in your browser using DataLab