[][src]Trait heredity::FitnessEvaluator

pub trait FitnessEvaluator {
    fn evaluate(&self, code: &Vec<u8>) -> f64;
}

Defines the evaluation heuristic for the current simulation.

Required methods

fn evaluate(&self, code: &Vec<u8>) -> f64

Evaluate the provided genetic code, return a score.

Higher = better.

Loading content...

Implementors

Loading content...