log_sum_special | R Documentation |
Computes log(sum(exp(x) * y)), or log(sum(exp(x))) if all(y == 0), in a numerically robust way.
log_sum_special(x, y)
x |
vector of length n |
y |
multiplier |
log(sum(exp(x))).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.