Click or drag to resize

NMathFunctionsCorrelation(IDFColumn, IDFColumn) Method

Computes the Pearson correlation of two data sets.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double Correlation(
	IDFColumn data1,
	IDFColumn data2
)

Parameters

data1  IDFColumn
The first data set.
data2  IDFColumn
The second set set.

Return Value

Double
Correlation.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if data is not numeric or has length of zero or one.
MismatchedSizeException Thrown if data1 and data2 have different lengths.
See Also