| NMathFunctionsCorrelationMatrix Method |
Computes the Pearson correlation matrix for a set of random inputs. The random
inputs are taken to be the columns of the input matrix. The symmetric,
positive definite matrix whose i,j entry is the Pearson correlation coefficient
between the inputs in column i and column j is computed and returned.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleSymmetricMatrix CorrelationMatrix(
DoubleMatrix A
)
Public Shared Function CorrelationMatrix (
A As DoubleMatrix
) As DoubleSymmetricMatrix
public:
static DoubleSymmetricMatrix^ CorrelationMatrix(
DoubleMatrix^ A
)
static member CorrelationMatrix :
A : DoubleMatrix -> DoubleSymmetricMatrix
Parameters
- A DoubleMatrix
- Matrix whose columns are the inputs whose Spearman rank correlation
coefficient is computed.
Return Value
DoubleSymmetricMatrixThe symmetric, positive definite matrix whose row i, column j
entry is the correlation coefficient between the inputs in column i and column j
Remarks
A constant column (and therefore standard deviation of zero) leads to a correlation
of zero.
See Also