Struct rustneat::population::Population
[−]
[src]
pub struct Population { pub species: Vec<Specie>, // some fields omitted }
All species in the network
Fields
species: Vec<Specie>
container of species
Methods
impl Population
[src]
pub fn create_population(population_size: usize) -> Population
[src]
Create a new population of size X.
pub fn size(&self) -> usize
[src]
Find total of all orgnaisms in the population
pub fn evolve(&mut self)
[src]
Create offspring by mutation and mating. May create new species.
pub fn evaluate_in(&mut self, environment: &mut Environment)
[src]
TODO
pub fn get_organisms(&self) -> Vec<Organism>
[src]
Return all organisms of the population
pub fn epochs_without_improvements(&self) -> usize
[src]
How many iterations without improvement