logsumexp {LDATS} | R Documentation |
Calculate the log-sum-exponential (LSE) of a vector
Description
Calculate the exponent of a vector (offset by the max), sum the elements, calculate the log, remove the offset.
Usage
logsumexp(x)
Arguments
x |
|
Value
The LSE.
Examples
logsumexp(1:10)
[Package LDATS version 0.3.0 Index]