logspace_sum_matrix_rows: Calculate logspace summation of matrix rows in a somewhat...

Description Usage Arguments Value

View source: R/utils.R

Description

Calculate logspace summation of matrix rows in a somewhat numerically stable way.

Usage

1

Arguments

logX

log-scale numeric matrix of values to sum.

Value

log(apply(exp(logX), 1, sum)), but more numerically stable


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