Click or drag to resize

CircularDescriptiveStatisticsMeanDirection Method

Calculates the mean direction of a list of angles.

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

Parameters

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

Return Value

Type: Double
The mean direction.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when dataList is .
ArgumentException Thrown when dataList is empty.
Remarks
The output range is (-π, π] and disregards winding. If the mean resultant length is zero, this will return a nonsensical value.
See Also