log1mexp: Compute f(a) = log(1 +/- exp(-a)) Numerically Optimally

View source: R/helper.R

log1mexpR Documentation

Compute f(a) = log(1 +/- exp(-a)) Numerically Optimally

Description

Compute f(a) = log(1 +/- exp(-a)) Numerically Optimally This helper function was a directly copy from copula package. It was initialized here intend to maintain the minimum package complexity

Usage

log1mexp(a, cutoff = log(2))

Arguments

a


numeric vector of positive values

cutoff


log(2) is “optimal”, but the exact value is unimportant, and anything in (0.5, 1) is fine.


sparktseung/LRMoE documentation built on March 21, 2022, 3:22 a.m.