Returns a (convergence, taper, approximation,...) tolerance. Defaults to .Machine$double.eps^(1/level), typically about 1e-8.

npsp.tolerance(level = 2, warn = TRUE)

Arguments

level

numerical,

warn

logical; If TRUE (the default) a warning message is issued when level < 1.

Value

Returns .Machine$double.eps^(1/level) if level >= 1, in other case 1 - .Machine$double.eps.

See also

Examples

curve(npsp.tolerance, 1, 1000)
abline(h = npsp.tolerance(0, FALSE), lty = 2)