ratio_convergence: Ratio Convergence Check.

View source: R/MixtureFitting.R

ratio_convergenceR Documentation

Ratio Convergence Check.

Description

Compare two values to tell whether an optimization process has converged. The absolute difference between values of two iterations is divided by the value of previous iteration and compared to the epsilon value.

Usage

    ratio_convergence( p_now, p_prev, epsilon = 1e-6 )

Arguments

p_now

function value of i-th iteration.

p_prev

function value of i-1-th iteration.

epsilon

convergence criterion

Value

TRUE if deemed to have converged, FALSE otherwise

Author(s)

Andrius Merkys


merkys/MixtureFitting documentation built on July 5, 2025, 5:43 a.m.