log1mexp: Compute f(a) = log(1 - exp(-a)) stably

Description Usage Arguments Value Author(s)

View source: R/utils.R View source: R/utils.R

Description

Compute f(a) = log(1 - exp(-a)) stably

Usage

1

Arguments

a

numeric vector of positive values

cutoff

log(2) is optimal, see Maechler (201x) .....

Value

f(a) == log(1 - exp(-a)) == log1p(-exp(-a)) == log(-expm1(-a))

Author(s)

Martin Maechler, May 2002 .. Aug. 2011


CreRecombinase/FGEM documentation built on July 17, 2020, 5:30 a.m.