Module bit

Module bit 

Source

Structsยง

BitCodec
A Codec for a Genotype of BitGenes. The encode function creates a Genotype with num_chromosomes chromosomes and num_genes genes per chromosome. The decode function creates a Vec<Vec<bool>> from the Genotype where the inner Vec contains the alleles of the BitGenes in the chromosome - the bool values.