Corrected buggy EWMA implementation.

Smoothing constant was calculated incorrectly.