Methods
cov(x)
Returns the covariance matrix for a given matrix.
Parameters:
Name | Type | Description |
---|---|---|
x |
Array.<Array.<number>> | A matrix where rows are samples and columns are variables. |
mean(x)
Returns the mean of each column in the provided matrix.
Parameters:
Name | Type | Description |
---|---|---|
x |
Array.<Array.<number>> | Two-dimensional matrix. |