Streaming Log-sum-exp Computation
Posted on Sun 08 May 2016 in Algorithms
A common numerical operation in statistical computing is to compute
where \(x_i \in \mathbb{R}\), and \(n\) is potentially very large.
We can implement the above computation by exponentiating each number, then summing them, then taking a logarithm as follows (written in Julia …
Continue reading