pub struct UnconditionalEventSampler<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> { /* private fields */ }
Trait Implementations§
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, N: SpeciationProbability<M, H>, I: ImmigrationEntry<M>> ActiveLineageSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N, UnconditionalEventSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N>, I> for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, N: SpeciationProbability<M, H>, I: ImmigrationEntry<M>> ActiveLineageSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N, UnconditionalEventSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N>, I> for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
type LineageIterator<'a> = impl Iterator<Item = &'a Lineage> where H: 'a, G: 'a, S: 'a, X: 'a, D: 'a, N: 'a, I: 'a
fn number_active_lineages(&self) -> usize
fn iter_active_lineages_ordered<'a>( &'a self, habitat: &'a H, lineage_store: &'a S ) -> Self::LineageIterator<'a>
fn get_last_event_time(&self) -> NonNegativeF64
§fn pop_active_lineage_and_event_time<P>(
&mut self,
simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>,
rng: &mut G,
early_peek_stop: P
) -> Option<(Lineage, PositiveF64)>
fn pop_active_lineage_and_event_time<P>( &mut self, simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>, rng: &mut G, early_peek_stop: P ) -> Option<(Lineage, PositiveF64)>
Contracts Read more
§fn push_active_lineage(
&mut self,
lineage: Lineage,
simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>,
rng: &mut G
)
fn push_active_lineage( &mut self, lineage: Lineage, simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>, rng: &mut G )
Contracts Read more
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> Backup for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> Backup for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
unsafe fn backup_unchecked(&self) -> Self
fn backup(&self) -> BackedUp<Self>
source§impl<M: Debug + MathsCore, H: Debug + Habitat<M>, G: Debug + RngCore<M>, S: Debug + LocallyCoherentLineageStore<M, H>, X: Debug + EmigrationExit<M, H, G, S>, D: Debug + DispersalSampler<M, H, G>, C: Debug + CoalescenceSampler<M, H, S>, T: Debug + TurnoverRate<M, H>, N: Debug + SpeciationProbability<M, H>> Debug for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M: Debug + MathsCore, H: Debug + Habitat<M>, G: Debug + RngCore<M>, S: Debug + LocallyCoherentLineageStore<M, H>, X: Debug + EmigrationExit<M, H, G, S>, D: Debug + DispersalSampler<M, H, G>, C: Debug + CoalescenceSampler<M, H, S>, T: Debug + TurnoverRate<M, H>, N: Debug + SpeciationProbability<M, H>> Debug for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> Default for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> Default for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> EventSampler<M, H, G, S, X, D, C, T, N> for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>> EventSampler<M, H, G, S, X, D, C, T, N> for UnconditionalEventSampler<M, H, G, S, X, D, C, 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
Auto Trait Implementations§
impl<M, H, G, S, X, D, C, T, N> Freeze for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M, H, G, S, X, D, C, T, N> RefUnwindSafe for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>where
M: RefUnwindSafe,
H: RefUnwindSafe,
G: RefUnwindSafe,
S: RefUnwindSafe,
X: RefUnwindSafe,
D: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
N: RefUnwindSafe,
impl<M, H, G, S, X, D, C, T, N> Send for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M, H, G, S, X, D, C, T, N> Sync for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M, H, G, S, X, D, C, T, N> Unpin for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>
impl<M, H, G, S, X, D, C, T, N> UnwindSafe for UnconditionalEventSampler<M, H, G, S, X, D, C, T, N>where
M: UnwindSafe,
H: UnwindSafe,
G: UnwindSafe,
S: UnwindSafe,
X: UnwindSafe,
D: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
N: UnwindSafe,
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