tExp: Truncated Exponential

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/ppstat.R

Description

The exponential function truncated to 0 for small values.

Usage

1
tExp(x, tLevel = 1e-04)

Arguments

x

Argument for the exponential function

tLevel

Truncation level

Details

Truncation can be useful in combination with basis function expansions where there is a need to store a large number of evaluations. Truncation of small values to 0 allow for efficient storage using e.g. sparse matrices.

Value

exp(x) if exp(x) >= \code{tLevel} and 0 if exp(x) < \code{tLevel}.

Author(s)

Niels Richard Hansen, Niels.R.Hansen@math.ku.dk

See Also

exp

Examples

1
2
tExp(-1)
tExp(-10)

ppstat documentation built on May 2, 2019, 5:26 p.m.