Double Mean
Average of all non-zero elements.
Returns: Double
Examples
Matrix a = new Matrix();
a.SetIt(2, 2, false, new double[] { 1.0, 2.0, 3.0, 4.0 });
double result = a.Mean();
if (Math.Abs(result - 2.5) > 1e-10)
throw new Exception("Matrix.Mean: expected 2.5, got " + result);
Matrix a;
double b;
a.SetIt(4,1,false,new double[] {1,2,3,4});
b = a.Mean; // b = 2.5