Click or drag to resize

DescriptiveStatistics.Median Method

Calculates the median of a list of doubles.

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

Parameters

dataList
Type: System.Collections.Generic.IList<Double>
The list of doubles to use to calculate the median.

Return Value

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