Description Usage Arguments Details Value Examples
Calculates mean(log(1+exp(xs)))
of a vector xs
.
1 | logsumexp_vec(xs)
|
xs |
A vector of random numbers. |
Numerically stable calculation of mean(log(1+exp(xs)))
.
A number.
1 2 | logsumexp_vec(10^(-5:5))
logsumexp_vec(rep(0, 5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.