Click or drag to resize
Accord.NET (logo)

CircularWeightedMean Method

Computes the Weighted Mean of the given angles.

Namespace:  Accord.Statistics
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public static double WeightedMean(
	double[] angles,
	double[] weights
)
Request Example View Source

Parameters

angles
Type: SystemDouble
A double array containing the angles in radians.
weights
Type: SystemDouble
An unit vector containing the importance of each angle in . The sum of this array elements should add up to 1.

Return Value

Type: Double
The mean of the given angles.
See Also