logSumExpTrick {stcpR6} | R Documentation |
log-sum-exp trick
Description
Apply log-sum-exp trick to a numeric vector.
Usage
logSumExpTrick(xs)
Arguments
xs |
A numeric vector. |
Value
log of sum of exp of xs
, which is equal to log(sum(exp(xs)))
.
[Package stcpR6 version 0.9.6 Index]