Click or drag to resize
CorrelationWeightedPearson Method
Computes the Weighted Pearson Product-Moment Correlation coefficient.

Namespace:  MathNet.Numerics.Statistics
Assembly:  MathNet.Numerics (in MathNet.Numerics.dll) Version: 3.7
Syntax
C#
public static double WeightedPearson(
	IEnumerable<double> dataA,
	IEnumerable<double> dataB,
	IEnumerable<double> weights
)

Parameters

dataA
Type: System.Collections.GenericIEnumerableDouble
Sample data A.
dataB
Type: System.Collections.GenericIEnumerableDouble
Sample data B.
weights
Type: System.Collections.GenericIEnumerableDouble
Corresponding weights of data.

Return Value

Type: Double
The Weighted Pearson product-moment correlation coefficient.
See Also