Description Usage Arguments Value References Examples
log_sum_exp
computes the log sum exp trick for avoiding numeric
underflow and have numeric stability in computations of small numbers.
1 | log_sum_exp(x)
|
x |
A vector of observations |
The logs-sum-exp value
https://hips.seas.harvard.edu/blog/2013/01/09/computing-log-sum-exp/
1 2 | x <- c(0.001, 0.5, 2, 1.4, 1.5)
out <- log_sum_exp(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.