Trait eant2::fitness::NNFitnessFunction
[−]
[src]
pub trait NNFitnessFunction { fn get_fitness(&self, network: &mut Network) -> f64; }
The fitness function used by the EANT2 algorithm. A lower fitness represents a better individual. Implement it for a type, and pass the type to the eant_loop function. Use the self argument to access fields of a struct, to factor other things into the fitness calculation.
Required Methods
fn get_fitness(&self, network: &mut Network) -> f64
Implementors
impl<'a, T: NNFitnessFunction> NNFitnessFunction for &'a T