logSumExp: Calculate log sum exp safely

View source: R/fdsa.R

logSumExpR Documentation

Calculate log sum exp safely

Description

Calculate log(exp(a)+exp(b)) avoiding numerical issues

Usage

logSumExp(a, b)

Arguments

a

Number

b

Number

Value

Value of log(exp(a)+exp(b))


gk documentation built on Aug. 10, 2023, 5:06 p.m.

Related to logSumExp in gk...