Exemplo n.º 1
0
 public static double Variance(this IArray <long> self)
 {
     var mean = self.Average(); return(self.Select(x => MathOps.Sqr(x - mean)).Average());
 }