pub trait StoppingRule {
// Provided methods
fn and<S>(self, other: S) -> Both<Self, S>
where Self: Sized { ... }
fn inspect<F>(self, f: F) -> Inspect<Self, F>
where Self: Sized,
F: FnMut(&Self) { ... }
fn or<S>(self, other: S) -> Either<Self, S>
where Self: Sized { ... }
}Expand description
Provided Methods§
Sourcefn 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.
Sourcefn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
Inspect the stopping rule after each E-step.
This can only be used for inspecting the state of the stopping rule itself. To inspect
other aspects of the algorithm, see EmStep::inspect.