logspace_add: Calculate log(exp(logx) + exp(logy)) in a somewhat...

Description Usage Arguments Value

View source: R/utils.R

Description

Calculate log(exp(logx) + exp(logy)) in a somewhat numerically stable way.

Usage

1
logspace_add(logx, logy)

Arguments

logx,

logy log-scale numeric values to add

Value

log(exp(logx) + exp(logy)), but more numerically stable


reichlab/2017-2018-cdc-flu-contest documentation built on May 24, 2019, 6:17 a.m.