npsp.tolerance: npsp Tolerances

View source: R/mask.R

npsp.toleranceR 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)

npsp documentation built on May 29, 2024, 5:31 a.m.