Genex v0.2.1 Genex.Chromosome View Source

A collection of genes.

A Chromosome represents one solution to the problem you are trying to solve. Solutions are encoded into an enumerable of genes. The Chromosome is then evaluated based on some criteria you define.

Link to this section Summary

Functions

Return the fitness of chromosome.

Link to this section Types

Link to this type

t()

View Source
t() :: %Genex.Chromosome{
  age: integer(),
  fitness: number(),
  genes: Enum.t(),
  size: integer()
}

Link to this section Functions

Return the fitness of chromosome.