pub trait EventTimeSampler<M: MathsCore, H: Habitat<M>, G: PrimeableRng<M>, T: TurnoverRate<M, H>>: Clone + Debug {
    // Provided method
    fn next_event_time_at_indexed_location_weakly_after(
        &self,
        indexed_location: &IndexedLocation,
        time: NonNegativeF64,
        habitat: &H,
        rng: &mut G,
        turnover_rate: &T
    ) -> NonNegativeF64 { ... }
}

Provided Methods§

source

fn next_event_time_at_indexed_location_weakly_after( &self, indexed_location: &IndexedLocation, time: NonNegativeF64, habitat: &H, rng: &mut G, turnover_rate: &T ) -> NonNegativeF64

§Contracts

Pre-condition - debug: indexed_location must be habitable

  • habitat.get_habitat_at_location(indexed_location.location()) > 0

Post-condition - debug: the next event will happen weakly after time

  • ret >= time

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<M: MathsCore, H: Habitat<M>, G: PrimeableRng<M>, T: TurnoverRate<M, H>> EventTimeSampler<M, H, G, T> for ConstEventTimeSampler

source§

impl<M: MathsCore, H: Habitat<M>, G: PrimeableRng<M>, T: TurnoverRate<M, H>> EventTimeSampler<M, H, G, T> for ExpEventTimeSampler

source§

impl<M: MathsCore, H: Habitat<M>, G: PrimeableRng<M>, T: TurnoverRate<M, H>> EventTimeSampler<M, H, G, T> for FixedEventTimeSampler

source§

impl<M: MathsCore, H: Habitat<M>, G: PrimeableRng<M>, T: TurnoverRate<M, H>> EventTimeSampler<M, H, G, T> for GeometricEventTimeSampler

source§

impl<M: MathsCore, H: Habitat<M>, G: PrimeableRng<M>, T: TurnoverRate<M, H>> EventTimeSampler<M, H, G, T> for PoissonEventTimeSampler