|
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
)
Public Shared Function WeightedMean (
angles As Double(),
weights As Double()
) As Double
Request Example
View SourceParameters
- 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:
DoubleThe mean of the given angles.
See Also