Description Usage Arguments Value Author(s)
View source: R/utils.R View source: R/utils.R
Compute f(a) = log(1 - exp(-a)) stably
1 | log1mexp(x)
|
a |
numeric vector of positive values |
cutoff |
log(2) is optimal, see Maechler (201x) ..... |
f(a) == log(1 - exp(-a)) == log1p(-exp(-a)) == log(-expm1(-a))
Martin Maechler, May 2002 .. Aug. 2011
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.