covariance(a,b)
Returns the covariance of arrays a and b.
covariance(a)
Returns the covariance matrix of the columns of matrix a.
Example
a = ( 1, 2, 3 );
b = ( 3, 4, 6 );
covariance( a, b )
1.5