pub struct ClassicalActiveLineageSampler<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>> { /* 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>, N: SpeciationProbability<M, H>, I: ImmigrationEntry<M>> ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>

source

pub fn init_with_store<'h, O: TrustedOriginSampler<'h, M, Habitat = H>>( origin_sampler: O ) -> (S, Self)
where H: 'h,

source

pub fn resume_with_store<'h, O: UntrustedOriginSampler<'h, M, Habitat = H>>( origin_sampler: O, 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>, 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)>
where P: FnOnce(PositiveF64) -> ControlFlow<()>,

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 )

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>, N: SpeciationProbability<M, H>, I: ImmigrationEntry<M>> Backup for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>

§

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>, N: Debug + SpeciationProbability<M, H>, I: Debug + ImmigrationEntry<M>> Debug for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
where S::LocalLineageReference: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<M, H, G, S, X, D, N, I> Freeze for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>

§

impl<M, H, G, S, X, D, N, I> RefUnwindSafe for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
where M: RefUnwindSafe, H: RefUnwindSafe, G: RefUnwindSafe, S: RefUnwindSafe, X: RefUnwindSafe, D: RefUnwindSafe, N: RefUnwindSafe, I: RefUnwindSafe, <S as LineageStore<M, H>>::LocalLineageReference: RefUnwindSafe,

§

impl<M, H, G, S, X, D, N, I> Send for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
where H: Send, S: Send, X: Send, D: Send, N: Send, I: Send, <S as LineageStore<M, H>>::LocalLineageReference: Send,

§

impl<M, H, G, S, X, D, N, I> Sync for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
where H: Sync, G: Sync, S: Sync, X: Sync, D: Sync, N: Sync, I: Sync, <S as LineageStore<M, H>>::LocalLineageReference: Sync,

§

impl<M, H, G, S, X, D, N, I> Unpin for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
where M: Unpin, H: Unpin, G: Unpin, S: Unpin, X: Unpin, D: Unpin, N: Unpin, I: Unpin, <S as LineageStore<M, H>>::LocalLineageReference: Unpin,

§

impl<M, H, G, S, X, D, N, I> UnwindSafe for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
where M: UnwindSafe, H: UnwindSafe, G: UnwindSafe, S: UnwindSafe, X: UnwindSafe, D: UnwindSafe, N: UnwindSafe, I: UnwindSafe, <S as LineageStore<M, H>>::LocalLineageReference: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> ExtractDiscriminant for T

§

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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Erased for T