Struct necsim_impls_no_std::cogs::active_lineage_sampler::alias::individual::IndividualAliasActiveLineageSampler
source · pub struct IndividualAliasActiveLineageSampler<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>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> { /* private fields */ }
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>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, 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>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
pub fn init_with_store<'h, O: TrustedOriginSampler<'h, M, Habitat = H>>(
origin_sampler: O,
turnover_rate: &T
) -> (S, Self)where
H: 'h,
pub fn resume_with_store<'h, O: UntrustedOriginSampler<'h, M, Habitat = H>>(
origin_sampler: O,
turnover_rate: &T,
resume_time: NonNegativeF64
) -> (S, Self, Vec<ExceptionalLineage>)where
H: 'h,
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>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> ActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I> for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, 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>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> ActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I> for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
type LineageIterator<'a> = impl Iterator<Item = &'a Lineage> where H: 'a, G: 'a, S: 'a, X: 'a, D: 'a, C: 'a, T: 'a, N: 'a, E: '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>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> Backup for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, 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>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> Backup for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
unsafe fn backup_unchecked(&self) -> Self
fn backup(&self) -> BackedUp<Self>
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>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> Debug for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, 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>, C: CoalescenceSampler<M, H, S>, T: TurnoverRate<M, H>, N: SpeciationProbability<M, H>, E: EventSampler<M, H, G, S, X, D, C, T, N>, I: ImmigrationEntry<M>> Debug for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
Auto Trait Implementations§
impl<M, H, G, S, X, D, C, T, N, E, I> Freeze for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
impl<M, H, G, S, X, D, C, T, N, E, I> RefUnwindSafe for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>where
M: RefUnwindSafe,
H: RefUnwindSafe,
G: RefUnwindSafe,
S: RefUnwindSafe,
X: RefUnwindSafe,
D: RefUnwindSafe,
C: RefUnwindSafe,
T: RefUnwindSafe,
N: RefUnwindSafe,
E: RefUnwindSafe,
I: RefUnwindSafe,
<S as LineageStore<M, H>>::LocalLineageReference: RefUnwindSafe,
impl<M, H, G, S, X, D, C, T, N, E, I> Send for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
impl<M, H, G, S, X, D, C, T, N, E, I> Sync for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
impl<M, H, G, S, X, D, C, T, N, E, I> Unpin for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>
impl<M, H, G, S, X, D, C, T, N, E, I> UnwindSafe for IndividualAliasActiveLineageSampler<M, H, G, S, X, D, C, T, N, E, I>where
M: UnwindSafe,
H: UnwindSafe,
G: UnwindSafe,
S: UnwindSafe,
X: UnwindSafe,
D: UnwindSafe,
C: UnwindSafe,
T: UnwindSafe,
N: UnwindSafe,
E: UnwindSafe,
I: UnwindSafe,
<S as LineageStore<M, H>>::LocalLineageReference: 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