logspace_sum: Calculate log(sum(exp(logx))) in a somewhat numerically...

Description Usage Arguments Value

View source: R/math-utils.R

Description

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

Usage

1

Arguments

logx

log-scale numeric vector of values to sum

Value

log(sum(exp(logx))), but more numerically stable


reichlab/cdcfluutils documentation built on March 12, 2020, 2:49 p.m.