Stats.CorrelationMatrix Method

Definition

Namespace: Extreme.Statistics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

CorrelationMatrix(IList<Vector<Double>>) Returns the correlation matrix for an array of numerical variables.
CorrelationMatrix<T>(Matrix<T>) Returns the correlation matrix for the columns in a matrix.

Stats.CorrelationMatrix(IList<Vector<Double>>)

Returns the correlation matrix for an array of numerical variables.
C#
public static SymmetricMatrix<double> CorrelationMatrix(
	IList<Vector<double>> variables
)

Parameters

variables  IList<Vector<Double>>
An array of Vector<T>.

Return Value

SymmetricMatrix<Double>
A symmetric matrix containing the correlation between the elements of variables.

Exceptions

ArgumentNullExceptionvariables is null.

Stats.CorrelationMatrix<T>(Matrix<T>)

Returns the correlation matrix for the columns in a matrix.
C#
public static SymmetricMatrix<T> CorrelationMatrix<T>(
	Matrix<T> matrix
)

Parameters

matrix  Matrix<T>
A matrix.

Type Parameters

T

Return Value

SymmetricMatrix<T>
A symmetric matrix containing the correlation between the columns of matrix.

Exceptions

ArgumentNullExceptionmatrix is null.

See Also