Click or drag to resize

DescriptiveStatisticsMedian Method

Calculates the median of a list of doubles.

Namespace:  AGI.Foundation
Assembly:  AGI.Foundation.Core (in AGI.Foundation.Core.dll) Version: 19.5.402.0 (19.5.402.0)
Syntax
public static double Median(
	IList<double> dataList
)

Parameters

dataList
Type: System.Collections.GenericIListDouble
The list of doubles to use to calculate the median.

Return Value

Type: Double
The median value.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when dataList is .
ArgumentException Thrown when dataList is empty.
See Also