Crate genetic_rs_common

Source
Expand description

The crate containing the core traits and structs of genetic-rs.

Modules§

builtinbuiltin
Built-in nextgen functions and traits to go with them.
prelude
Used to quickly import everything this crate has to offer. Simply add use genetic_rs::prelude::* to begin using this crate.

Structs§

GeneticSim
The simulation controller.

Traits§

FitnessFn
Represents a fitness function. Inputs a reference to the genome and outputs an f32.
GenerateRandomgenrand
Helper trait used in the generation of random starting populations
GenerateRandomCollectiongenrand
Blanket trait used on collections that contain objects implementing GenerateRandom
NextgenFn
Represents a nextgen function. Inputs genomes and rewards and produces the next generation
Rng