Description Usage bin2int int2bin
This is the documentation for the EBD utility functions.
1 2 3 4 5 | EBD_B_premutate(mutation_rate, pop_size, total_ticks, n_bits)
bin2int(binaries, digits)
int2bin(integers, digits)
|
bin2int
Convert a binary string from a binary vector to an integer. Works for matrices where each column is a binary string.
bin2int( binaries )
binaries
A numeric
vector where each element corresponds to a binary digit, or a matrix
where each column corresponds to a binary digit.
Returns a numeric
vector of the corresponding integers
int2bin
Converts integers to their corresponding binary representation. Note that the binary string is reversed. For example 1
is 10
as opposed to 01
.
int2bin( integers, digits )
integers
A numeric
vector of integers
digits
The number of digits for the binary string
Returns a matrix
where each column is a binary string and each row is the digit on the given string.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.