log_sum_exp {Melissa} | R Documentation |
log_sum_exp
computes the log sum exp trick for avoiding
numeric underflow and have numeric stability in computations of small
numbers.
log_sum_exp(x)
x |
A vector of observations |
The logs-sum-exp value
C.A.Kapourani C.A.Kapourani@ed.ac.uk
https://hips.seas.harvard.edu/blog/2013/01/09/computing-log-sum-exp/