I saw some links on 1-pass recursive calculation of mean/variance. When I tried the algorithms, it did not seem to give correct results for complex values. Anyone know how to correctly implement this?