Sample ClassAverage Values(IEnumerableDouble, IEnumerableDouble) Method
This is used to get the average of two enumerable list of values
Definition
Namespace: XMLCommentsExamples
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
The average of the values from both enumerable lists
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public double AverageValues(
IEnumerable<double> firstValues,
IEnumerable<double> secondValues
)VB
Public Function AverageValues (
firstValues As IEnumerable(Of Double),
secondValues As IEnumerable(Of Double)
) As DoubleC++
public:
double AverageValues(
IEnumerable<double>^ firstValues,
IEnumerable<double>^ secondValues
)F#
member AverageValues :
firstValues : IEnumerable<float> *
secondValues : IEnumerable<float> -> float Parameters
- firstValues IEnumerableDouble
- The first set of values to average
- secondValues IEnumerableDouble
- The second set of values to average
Return Value
DoubleThe average of the values from both enumerable lists