npsp.tolerance {npsp}R Documentation

npsp Tolerances

Description

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

Usage

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

.Machine

Examples

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

[Package npsp version 0.7-13 Index]