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

Description Usage Arguments Value

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/2018-2019-cdc-flu-contest documentation built on May 24, 2019, 7:36 a.m.