lppl
v2.0.0
◆
logsumexp_streaming
template<typename , typename O , typename... Ts>
double logsumexp_streaming
(
double &
_alpha
,
double &
_r
,
const double &
weight
)
friend
streaming logsumexp computation, see
https://arxiv.org/abs/1805.02867
Parameters
_alpha
running maximum for normalization
_r
the sum term while controlling for the maximum
weight
the most recent (log) weight
Returns
double
LogSumExpQ
Generated by
1.9.1