Mean value
using System.Collections.Generic; using System.Linq; using System; public static class Utilities { public static double Mean(this IEnumerable<double> values) { return values.Average(); } }