Struct necsim_impls_no_std::cogs::coalescence_sampler::conditional::ConditionalCoalescenceSampler
source · pub struct ConditionalCoalescenceSampler<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>>(/* private fields */);
Implementations§
source§impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> ConditionalCoalescenceSampler<M, H, S>
impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> ConditionalCoalescenceSampler<M, H, S>
pub fn sample_coalescence_at_location( &self, location: Location, habitat: &H, lineage_store: &S, coalescence_rng_sample: CoalescenceRngSample ) -> (IndexedLocation, GlobalLineageReference)
Trait Implementations§
source§impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> Backup for ConditionalCoalescenceSampler<M, H, S>
impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> Backup for ConditionalCoalescenceSampler<M, H, S>
unsafe fn backup_unchecked(&self) -> Self
fn backup(&self) -> BackedUp<Self>
source§impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> CoalescenceSampler<M, H, S> for ConditionalCoalescenceSampler<M, H, S>
impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> CoalescenceSampler<M, H, S> for ConditionalCoalescenceSampler<M, H, S>
§fn sample_interaction_at_location(
&self,
location: Location,
habitat: &H,
lineage_store: &S,
coalescence_rng_sample: CoalescenceRngSample
) -> (IndexedLocation, LineageInteraction)
fn sample_interaction_at_location( &self, location: Location, habitat: &H, lineage_store: &S, coalescence_rng_sample: CoalescenceRngSample ) -> (IndexedLocation, LineageInteraction)
Contracts Read more
source§impl<M: Debug + MathsCore, H: Debug + Habitat<M>, S: Debug + GloballyCoherentLineageStore<M, H>> Debug for ConditionalCoalescenceSampler<M, H, S>
impl<M: Debug + MathsCore, H: Debug + Habitat<M>, S: Debug + GloballyCoherentLineageStore<M, H>> Debug for ConditionalCoalescenceSampler<M, H, S>
source§impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> Default for ConditionalCoalescenceSampler<M, H, S>
impl<M: MathsCore, H: Habitat<M>, S: GloballyCoherentLineageStore<M, H>> Default for ConditionalCoalescenceSampler<M, H, S>
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: GloballyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: SeparableDispersalSampler<M, H, G>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> EventSampler<M, H, G, S, X, D, ConditionalCoalescenceSampler<M, H, S>, T, N> for ConditionalGillespieEventSampler<M, H, G, S, X, D, T, N>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: GloballyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: SeparableDispersalSampler<M, H, G>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> EventSampler<M, H, G, S, X, D, ConditionalCoalescenceSampler<M, H, S>, T, N> for ConditionalGillespieEventSampler<M, H, G, S, X, D, T, N>
fn sample_event_for_lineage_at_event_time_or_emigrate<Q, Aux, FS, FD, FE>( &mut self, lineage: Lineage, event_time: PositiveF64, simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N>, rng: &mut G, handler: EventHandler<FS, FD, FE>, auxiliary: Aux ) -> Q
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: GloballyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: SeparableDispersalSampler<M, H, G>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> GillespieEventSampler<M, H, G, S, X, D, ConditionalCoalescenceSampler<M, H, S>, T, N> for ConditionalGillespieEventSampler<M, H, G, S, X, D, T, N>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: GloballyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: SeparableDispersalSampler<M, H, G>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> GillespieEventSampler<M, H, G, S, X, D, ConditionalCoalescenceSampler<M, H, S>, T, N> for ConditionalGillespieEventSampler<M, H, G, S, X, D, T, N>
Auto Trait Implementations§
impl<M, H, S> Freeze for ConditionalCoalescenceSampler<M, H, S>
impl<M, H, S> RefUnwindSafe for ConditionalCoalescenceSampler<M, H, S>
impl<M, H, S> Send for ConditionalCoalescenceSampler<M, H, S>
impl<M, H, S> Sync for ConditionalCoalescenceSampler<M, H, S>
impl<M, H, S> Unpin for ConditionalCoalescenceSampler<M, H, S>
impl<M, H, S> UnwindSafe for ConditionalCoalescenceSampler<M, H, S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more