Struct revonet::ea::RealCodedIndividual [] [src]

pub struct RealCodedIndividual {
    pub genes: Vec<f32>,
    pub fitness: f32,
}

Represents real-coded individual with genes encoded as vector of real numbers.

Fields

Collection of individual genes.

Fitness value associated with the individual.

Trait Implementations

impl Clone for RealCodedIndividual
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RealCodedIndividual
[src]

Formats the value using the given formatter.

impl Individual for RealCodedIndividual
[src]

Creates a new individual with empty set of genes and NAN fitness.

Initializes an individual by allocating random vector of genes using Gaussian distribution. Read more

Return current fitness value.

Update fitness value.

Return vector of genes.

Return mutable vector of genes.

Return MultilayeredNetwork object with weights assigned according to the genes' values.

Return mutable MultilayeredNetwork object with weights assigned according to the genes' values.

Update individual's MultilayeredNetwork object and update genes according to the network weights. Read more