pub struct WindowLogLikelihoodTolerance { /* private fields */ }Expand description
A stopping rule for window EM that lets the algorithm run until the successive sum of normalised block log-likelihood values falls below a certain tolerance.
This is analogous to LogLikelihoodTolerance, but instead of considering the full
(normalised) data log-likelihood, we consider the sum of these values over blocks.
Implementations§
Source§impl WindowLogLikelihoodTolerance
impl WindowLogLikelihoodTolerance
Sourcepub fn absolute_difference(&self) -> f64
pub fn absolute_difference(&self) -> f64
Returns the absolute difference between the two most recent window log-likelihood values.
Sourcepub fn log_likelihood(&self) -> LogLikelihood
pub fn log_likelihood(&self) -> LogLikelihood
Returns the current window log-likelihood value.
Trait Implementations§
Source§impl<T> Stop<T> for WindowLogLikelihoodTolerance
impl<T> Stop<T> for WindowLogLikelihoodTolerance
Source§impl StoppingRule for WindowLogLikelihoodTolerance
impl StoppingRule for WindowLogLikelihoodTolerance
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.
Auto Trait Implementations§
impl Freeze for WindowLogLikelihoodTolerance
impl RefUnwindSafe for WindowLogLikelihoodTolerance
impl Send for WindowLogLikelihoodTolerance
impl Sync for WindowLogLikelihoodTolerance
impl Unpin for WindowLogLikelihoodTolerance
impl UnwindSafe for WindowLogLikelihoodTolerance
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