log_sum_exp {Melissa}R Documentation

Compute stable log-sum-exp

Description

log_sum_exp computes the log sum exp trick for avoiding numeric underflow and have numeric stability in computations of small numbers.

Usage

log_sum_exp(x)

Arguments

x

A vector of observations

Value

The logs-sum-exp value

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

References

https://hips.seas.harvard.edu/blog/2013/01/09/computing-log-sum-exp/


[Package Melissa version 1.8.0 Index]