Description Usage Arguments Value Examples
This log_sum_exp
function calculates the log sum of exponentials of two numbers. This trick is to increase accuracy and avoid underflow and overflow problems when very small or very large numbers are represented directly.
1 2 3 | log_sum_exp(u, v)
LSE_R(vec)
|
u |
first number |
v |
second number |
vec |
vector to be summed |
log_sum_exp
returns logged sum of exponential of u and v
LSE_R
the logged sum of the exponentials of all values in vector
1 2 | log_sum_exp(1, 2)
LSE_R(c(1,2,3,4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.