pub struct ImportanceSampler<'a, R, M, E> { /* private fields */ }Expand description
A struct for sampling using importance sampling.
Implementations§
Trait Implementations§
Source§impl<R: Rng> BNSampler<CatBN> for ImportanceSampler<'_, R, CatBN, CatEv>
impl<R: Rng> BNSampler<CatBN> for ImportanceSampler<'_, R, CatBN, CatEv>
Source§type Samples = CatWtdTable
type Samples = CatWtdTable
The samples type.
Source§impl<R: Rng> BNSampler<GaussBN> for ImportanceSampler<'_, R, GaussBN, GaussEv>
impl<R: Rng> BNSampler<GaussBN> for ImportanceSampler<'_, R, GaussBN, GaussEv>
Source§type Samples = GaussWtdTable
type Samples = GaussWtdTable
The samples type.
Source§impl<R: Rng> CTBNSampler<CatCTBN> for ImportanceSampler<'_, R, CatCTBN, CatTrjEv>
impl<R: Rng> CTBNSampler<CatCTBN> for ImportanceSampler<'_, R, CatCTBN, CatTrjEv>
Source§type Samples = CatWtdTrjs
type Samples = CatWtdTrjs
The samples type.
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 ImportanceSampler<'_, R, CatBN, CatEv>
impl<R: Rng + SeedableRng> ParBNSampler<CatBN> for ImportanceSampler<'_, R, CatBN, CatEv>
Source§type Samples = CatWtdTable
type Samples = CatWtdTable
The samples type.
Source§impl<R: Rng + SeedableRng> ParBNSampler<GaussBN> for ImportanceSampler<'_, R, GaussBN, GaussEv>
impl<R: Rng + SeedableRng> ParBNSampler<GaussBN> for ImportanceSampler<'_, R, GaussBN, GaussEv>
Source§type Samples = GaussWtdTable
type Samples = GaussWtdTable
The samples type.
Source§impl<R: Rng + SeedableRng> ParCTBNSampler<CatCTBN> for ImportanceSampler<'_, R, CatCTBN, CatTrjEv>
impl<R: Rng + SeedableRng> ParCTBNSampler<CatCTBN> for ImportanceSampler<'_, R, CatCTBN, CatTrjEv>
Source§type Samples = CatWtdTrjs
type Samples = CatWtdTrjs
The samples type.
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, E> !Freeze for ImportanceSampler<'a, R, M, E>
impl<'a, R, M, E> !RefUnwindSafe for ImportanceSampler<'a, R, M, E>
impl<'a, R, M, E> Send for ImportanceSampler<'a, R, M, E>
impl<'a, R, M, E> !Sync for ImportanceSampler<'a, R, M, E>
impl<'a, R, M, E> Unpin for ImportanceSampler<'a, R, M, E>
impl<'a, R, M, E> !UnwindSafe for ImportanceSampler<'a, R, M, E>
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