pub struct Inspect<T, F> { /* private fields */ }
Expand description
A combinator for types that allows inspection after each E-step.
To inspect the EM process itself, this can be constructed using EmStep::inspect
,
which is available on anything implementing Em
or StreamingEm
. To inspect a
stopping rule, this can be constructed using StoppingRule::inspect
.
Trait Implementations§
Source§impl<const D: usize, T, F, I> Em<D, I> for Inspect<T, F>
impl<const D: usize, T, F, I> Em<D, I> for Inspect<T, F>
Source§impl<S, F> StoppingRule for Inspect<S, F>where
S: StoppingRule,
impl<S, F> StoppingRule for Inspect<S, F>where
S: StoppingRule,
Source§fn and<S>(self, other: S) -> Both<Self, S>where
Self: Sized,
fn and<S>(self, other: S) -> Both<Self, S>where
Self: Sized,
Returns a new stopping rule that requires that both this and another stopping
rule must indicicate convergence before stopping.
Source§impl<const D: usize, T, F, R> StreamingEm<D, R> for Inspect<T, F>
impl<const D: usize, T, F, R> StreamingEm<D, R> for Inspect<T, F>
Auto Trait Implementations§
impl<T, F> Freeze for Inspect<T, F>
impl<T, F> RefUnwindSafe for Inspect<T, F>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<T, F> Send for Inspect<T, F>
impl<T, F> Sync for Inspect<T, F>
impl<T, F> Unpin for Inspect<T, F>
impl<T, F> UnwindSafe for Inspect<T, F>where
T: UnwindSafe,
F: 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
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