Ejemplo n.º 1
0
        private void CalculateStats()
        {
            var sum = _data.Accumulate((next, accumulator) => accumulator + next);

            Mean = sum / Count;
            StandardDeviation = Math.Sqrt(_data.Accumulate((next, accumulator) => accumulator + Math.Pow(next - Mean, 2)) / Count);
        }