Description Usage Arguments Details Value
Compute log(sum(exp(x)))
, but do so in a way that avoids underflow.
1 | log_sum(lx)
|
lx |
Vector of logs |
Use the following identity to stabilize the calculation:
∑ \exp(x-x_0) = 1/x0 ∑ \exp(x)
log of the sum of the antilogs of the input values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.