log_add_exp: Logarithm of sum of exponentials of two real numbers

Description Usage Arguments Value

View source: R/utils.R

Description

Stable calculation of log(exp(x) + exp(y)) of two numbers x and y

Usage

1

Arguments

x

real number

y

real number

Value

returns log(exp(x) + exp(y)).


baruuum/btoolbox documentation built on Aug. 17, 2020, 1:29 a.m.