cov(x: array): number
Covariance matrix.
Calculates the covariance matrix between arrays or matrices. For a single vector, returns the variance. For two vectors, returns the 2x2 covariance matrix. For a matrix, returns the covariance matrix between columns.
x: array
Input array or matrix
cov(x: array,flag: 0 | 1,): number
Covariance matrix.
Calculates the covariance matrix between arrays or matrices. For a single vector, returns the variance. For two vectors, returns the 2x2 covariance matrix. For a matrix, returns the covariance matrix between columns.
x: array
Input array or matrix
cov(): matrix
Covariance matrix.
Calculates the covariance matrix between arrays or matrices. For a single vector, returns the variance. For two vectors, returns the 2x2 covariance matrix. For a matrix, returns the covariance matrix between columns.
Covariance matrix or scalar variance
cov(x: matrix,flag?: 0 | 1,): matrix
Covariance matrix.
Calculates the covariance matrix between arrays or matrices. For a single vector, returns the variance. For two vectors, returns the 2x2 covariance matrix. For a matrix, returns the covariance matrix between columns.
x: matrix
Input array or matrix
Covariance matrix or scalar variance