pub struct ForwardSampler<'a, R, M> { /* private fields */ }Expand description
A forward sampler.
Implementations§
Trait Implementations§
Source§impl<R: Rng> CTBNSampler<CatCTBN> for ForwardSampler<'_, R, CatCTBN>
impl<R: Rng> CTBNSampler<CatCTBN> for ForwardSampler<'_, R, CatCTBN>
Source§fn sample_by_length(&self, max_length: usize) -> Self::Sample
fn sample_by_length(&self, max_length: usize) -> Self::Sample
Sample a single trajectory with a given length from a CTBN. Read more
Source§fn sample_by_time(&self, max_time: f64) -> Self::Sample
fn sample_by_time(&self, max_time: f64) -> Self::Sample
Sample a single trajectory with a given time from a CTBN. Read more
Source§fn sample_by_length_or_time(
&self,
max_length: usize,
max_time: f64,
) -> Self::Sample
fn sample_by_length_or_time( &self, max_length: usize, max_time: f64, ) -> Self::Sample
Sample a single trajectory with a given length or time from a CTBN. Read more
Source§fn sample_n_by_length(&self, max_length: usize, n: usize) -> Self::Samples
fn sample_n_by_length(&self, max_length: usize, n: usize) -> Self::Samples
Sample multiple trajectories with a given length from a CTBN. Read more
Source§impl<R: Rng + SeedableRng> ParBNSampler<CatBN> for ForwardSampler<'_, R, CatBN>
impl<R: Rng + SeedableRng> ParBNSampler<CatBN> for ForwardSampler<'_, R, CatBN>
Source§impl<R: Rng + SeedableRng> ParBNSampler<GaussBN> for ForwardSampler<'_, R, GaussBN>
impl<R: Rng + SeedableRng> ParBNSampler<GaussBN> for ForwardSampler<'_, R, GaussBN>
Source§impl<R: Rng + SeedableRng> ParCTBNSampler<CatCTBN> for ForwardSampler<'_, R, CatCTBN>
impl<R: Rng + SeedableRng> ParCTBNSampler<CatCTBN> for ForwardSampler<'_, R, CatCTBN>
Source§fn par_sample_n_by_length(&self, max_length: usize, n: usize) -> Self::Samples
fn par_sample_n_by_length(&self, max_length: usize, n: usize) -> Self::Samples
Sample multiple trajectories with a given length from a CTBN in parallel. Read more
Auto Trait Implementations§
impl<'a, R, M> !Freeze for ForwardSampler<'a, R, M>
impl<'a, R, M> !RefUnwindSafe for ForwardSampler<'a, R, M>
impl<'a, R, M> Send for ForwardSampler<'a, R, M>
impl<'a, R, M> !Sync for ForwardSampler<'a, R, M>
impl<'a, R, M> Unpin for ForwardSampler<'a, R, M>
impl<'a, R, M> !UnwindSafe for ForwardSampler<'a, R, M>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more