StoppingRule

Trait StoppingRule 

Source
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

A type that can be combined in various ways to create a stopping rule for EM types.

This primary serves as a supertrait bound for Stop. Stop cannot provide these methods directly without breaking type inference when calling them.

Provided Methods§

Source

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

fn inspect<F>(self, f: F) -> Inspect<Self, F>
where Self: Sized, F: FnMut(&Self),

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.

Source

fn or<S>(self, other: S) -> Either<Self, S>
where Self: Sized,

Returns a new stopping rule that requires that either this or another stopping rule must indicicate convergence before stopping.

Implementors§