Structsยง
- Float
Codec - A Codec for a Genotype of
FloatGenes
. Theencode
function creates a Genotype withnum_chromosomes
chromosomes andnum_genes
genes per chromosome. Thedecode
function creates aVec<Vec<f32>>
from the Genotype where the innerVec
contains the alleles of theFloatGenes
in the chromosome - thef32
values.