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
)
Public Shared Function MedianDirection (
dataList As IList(Of Double)
) As Double
public:
static double MedianDirection(
IList<double>^ dataList
)
static member MedianDirection :
dataList : IList<float> -> float
Parameters
- dataList
- Type: System.Collections.GenericIListDouble
The list of angles to use to calculate the median.
Return Value
Type:
DoubleThe circular median of the angles. If the minimizer is unable to find the median then
NaN is returned.
Exceptions Remarks The output range is (-π, π] and disregards winding.
See Also