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

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

Parameters

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

Return Value

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