VividCortex/ewma — pull request #1 by IanCal (2013-07-23 19:59:13+00:00)
Title: Initialization fix for bug in SimpleEWMA

When the value reaches 0 after starting (trivially if the first values
are 0) the EWMA is deemed uninitialized, which leads to this:

Sequence : 0, 1
MA = 1

when what you really want is

Sequence : 0, 1
MA = alpha