Stop

Trait Stop 

Source
pub trait Stop<T>: StoppingRule {
    type Status;

    // Required method
    fn stop<const N: usize>(
        &mut self,
        em: &T,
        status: &Self::Status,
        sfs: &Sfs<N>,
    ) -> bool;
}
Expand description

A type capable of deciding whether an EM algorithm should stop.

Required Associated Types§

Source

type Status

A status from the E-step that may be used for checking convergence.

Required Methods§

Source

fn stop<const N: usize>( &mut self, em: &T, status: &Self::Status, sfs: &Sfs<N>, ) -> bool

Returns true if the algorithm should stop, false otherwise.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Stop<T> for LogLikelihoodTolerance
where T: EmStep<Status = SumOf<LogLikelihood>>,

Source§

impl<T> Stop<T> for Steps
where T: EmStep,

Source§

impl<T> Stop<T> for WindowLogLikelihoodTolerance
where T: EmStep<Status = Vec<SumOf<LogLikelihood>>>,

Source§

impl<T, A, B> Stop<T> for Both<A, B>
where T: EmStep, A: Stop<T, Status = T::Status>, B: Stop<T, Status = T::Status>,

Source§

impl<T, A, B> Stop<T> for Either<A, B>
where T: EmStep, A: Stop<T, Status = T::Status>, B: Stop<T, Status = T::Status>,

Source§

impl<T, S, F> Stop<T> for Inspect<S, F>
where T: EmStep, S: Stop<T, Status = T::Status>, F: FnMut(&S),