Talgene::Generation(T)
Inherits Talgene::Advanceable < Reference < Object
A convenience abstract class to avoid some boilerplate over the implementation of a
#advance method.
Constructors
new(population : Array(T))
Creates a new Talgene::Generation instance with supplied array of individuals.
Instance methods
best_fitness
Convenience method to fetch the best fitness yielded from the population. Same as
fittest.fitness
fittest
Returns the population individual that scored the best fitness. Once this is computed, the value is cached for future calls.
Expects T implements #fitness. See Talgene::Fittable.