SampleClass sc = new SampleClass(0);
Console.WriteLine("Average: {0}", sc.Average(new[] { 1, 2, 3, 4 }));
Console.WriteLine("Average: {0}", sc.Average(new[] { 1, 2, 3, 4 },
new[] { 10, 20, 30, 40}));
AverageValues(IEnumerableDouble) | This is used to average an enumerable list of values |
AverageValues(IEnumerableDouble, IEnumerableDouble) | This is used to get the average of two enumerable list of values |