cc.journeyman.simulated-genetics.utils
TODO: write docs
bits-in-genome
Number of bits we’re actually using. NOTE THAT as this implementation is based on Java longs, this number must not be more than 63 or else we’ve a lot of rewriting to do.
create-binary-string-mask
(create-binary-string-mask start end)
Mainly for testing, create a binary string mask with those bits indexed from start
(inclusive) to end
(exclusive) set, and all others cleared.
create-mask
(create-mask start end)
Create a with those bits indexed from start
(inclusive) to end
(exclusive) set, and all others cleared.
long-from-binary-string
(long-from-binary-string s)
Mainly for testing, create a long from this binary string. The string is expected to comprise zeros and ones, only.