Skip to main content

score_genome

Function score_genome 

Source
pub fn score_genome<G: TraceGenome, A>(
    genome: &G,
    model: Model<A>,
) -> Result<(A, Trace), GenomeError>
Expand description

Score a genome’s canonical trace (TraceGenome::to_trace) under an arbitrary model — convenience used by readouts and tests. Errors instead of panicking when the model’s address structure does not match the encoding (EV-N3); see EvolutionModel::score for the error cases.