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: 24.3.420.0 (24.3.420.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