logspace_sub_matrix_rows: Calculate logspace difference of matrix rows in a somewhat...

Description Usage Arguments Value

View source: R/math-utils.R

Description

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

Usage

1

Arguments

logX

log-scale numeric matrix of values to subtract. logX must have exactly 2 columns.

Value

log(exp(logX)[, 1] - exp(logX)[, 2]), but more numerically stable


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