pub trait CoalescenceSampler<M: MathsCore, H: Habitat<M>, S: LineageStore<M, H>>: Backup + Debug {
    // Provided method
    fn sample_interaction_at_location(
        &self,
        location: Location,
        habitat: &H,
        lineage_store: &S,
        coalescence_rng_sample: CoalescenceRngSample
    ) -> (IndexedLocation, LineageInteraction) { ... }
}

Provided Methods§

source

fn sample_interaction_at_location( &self, location: Location, habitat: &H, lineage_store: &S, coalescence_rng_sample: CoalescenceRngSample ) -> (IndexedLocation, LineageInteraction)

§Contracts

Pre-condition - debug: location is habitable

  • habitat.get_habitat_at_location(&location) > 0

Object Safety§

This trait is not object safe.

Implementors§