ILNumerics Ultimate VS

Statisticscov Method (InArrayDouble, Boolean)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Covariance matrix of A.

[ILNumerics Statistics Toolbox]

Namespace:  ILNumerics.Toolboxes
Assembly:  ILNumerics.Toolboxes.Statistics (in ILNumerics.Toolboxes.Statistics.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<double> cov(
	InArray<double> A,
	bool unbiased = true
)

Parameters

A
Type: ILNumericsInArrayDouble
Input vector or data matrix, samples in columns, variables in rows.
unbiased (Optional)
Type: SystemBoolean
[Optional] If true, calculate the best unbiased variance estimate if the observations are from a normal distribution. This normalized by n-1 if n>1 (n = number of samples). If n == 1 normalization is always 1. If false always normalize by n.

Return Value

Type: RetArrayDouble
Variance of vector A/Covariance matrix of A.
Remarks

If A is a vector cov(A) returns the variance of A.

If A is a m x n matrix, where each of the n columns is an m-dimensional observation, cov(A) is the n x n covariance matrix.

The mean is removed from each column before calculating the result.

[ILNumerics Statistics Toolbox]

See Also

Reference