3 ms·
Or, you could compute the average as follows: m <-- m - (1/t) (m - x_t) This will compute the exact historical average. I like to use 2/t instead of 1/t t
by bravura 17y ago
Or, you could compute the average as follows:
m <-- m - (1/t) (m - x_t)
This will compute the exact historical average. I like to use 2/t instead of 1/t to get a moving average over a non-stationary distribution, which favors the more recent events.
- deleted 17y ago[deleted]
- eru 17y agoPlease keep numerical errors in mind. They accumulate.