Given two consecutive numbers in a sequence, return TRUE
if the
relative change is positive but less than the given tolerance.
1 | 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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.