SampleClassAverageValues Method

These methods are used to compute the average of enumerable lists of values

Remarks

These methods serve no other purpose than to demonstrate the use of the overloads XML comments element.

Example

C#
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}));

Overload List

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

See Also