--- from: http://rosettacode.org/wiki/Cumulative_standard_deviation note: Probability and statistics