Click or drag to resize

CircularDescriptiveStatisticsMedianDirection Method

Calculates the median of a list of angles by minimizing E[ π - | π - | θ - φ | | ] where φ is the median angle sought, and θ represents the angles from the input data list.

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 MedianDirection(
	IList<double> dataList
)

Parameters

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

Return Value

Type: Double
The circular median of the angles. If the minimizer is unable to find the median then NaN is returned.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when dataList is .
ArgumentException Thrown when dataList is empty.
Remarks
The output range is (-π, π] and disregards winding.
See Also