Skip to main content

hooked_crossover_traces

Function hooked_crossover_traces 

Source
pub fn hooked_crossover_traces<G, M, H, R>(
    parent1: &G,
    parent2: &G,
    mask: &M,
    hook: &H,
    generation: usize,
    _rng: &mut R,
) -> Result<(G, G), GenomeError>
Expand description

Hooked crossover operator that integrates with operation hooks.

Like hooked_mutate_trace, the produced child traces only recombine values and carry a neutral logp of 0.0; score them with TraceScoringHandler to obtain probability mass.