has_converged {scanstatistics} | R Documentation |
Given two consecutive numbers in a sequence, return TRUE
if the
relative change is positive but less than the given tolerance.
has_converged(current, previous, tol = 0.01)
current |
A scalar; the most recent value of the sequence. |
previous |
A scalar; the second most recent value of the sequence, or a reference value. |
tol |
The tolerance, a positive scalar near zero. |