Statistic 函数
PHP Manual

stats_covariance

(PECL stats >= 1.0.0)

stats_covarianceComputes the covariance of two data sets

说明

float stats_covariance ( array $a , array $b )

Returns the covariance of a and b.

参数

a

The first array

b

The second array

返回值

Returns the covariance of a and b, or FALSE on failure.


Statistic 函数
PHP Manual