Collective2 Explorer
Collective2 Explorer
Namespaces
MathNet.Numerics Namespaces
MathNet.Numerics.Statistics
Correlation Class
Correlation Methods
Pearson Method
PearsonMatrix Method
Spearman Method
SpearmanMatrix Method
WeightedPearson Method
Correlation
Pearson Method
Computes the Pearson Product-Moment Correlation coefficient.
Namespace:
MathNet.Numerics.Statistics
Assembly:
MathNet.Numerics (in MathNet.Numerics.dll) Version: 3.7
Syntax
C#
Copy
public
static
double
Pearson
(
IEnumerable
<
double
>
dataA
,
IEnumerable
<
double
>
dataB
)
Parameters
dataA
Type:
System.Collections.Generic
IEnumerable
Double
Sample data A.
dataB
Type:
System.Collections.Generic
IEnumerable
Double
Sample data B.
Return Value
Type:
Double
The Pearson product-moment correlation coefficient.
See Also
Reference
Correlation Class
MathNet.Numerics.Statistics Namespace