Description Usage Arguments Details Value Author(s) See Also Examples
Compute log( exp(x)+exp(y) )
without floating overflow or underflow
1 | logsumexp(x, y)
|
x |
a numeric vector or matrix. |
y |
a numeric vector or matrix of same size as |
The computation uses logcosh()
.
Numeric vector or matrix of same dimensions as x
.
Gordon K Smyth
1 2 3 |
[1] 0.6931472 0.6931473 0.6931482 0.6931572 0.6932472 1.6931472
[7] 3.6931472 50.6931472 800.6931472
[1] 0.6931472 0.6931473 0.6931482 0.6931572 0.6932472 1.6931472 3.6931472
[8] 50.6931472 Inf
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.