|
static | covarianceMatrix (array $data, ?array $means=null) |
| Returns the covariance matrix of n-dimensional data.
|
|
static | fromDataset (array $data, int $i, int $k, bool $sample=true, ?float $meanX=null, ?float $meanY=null) |
| Calculates covariance of two dimensions, i and k in the given data.
|
|
static | fromXYArrays (array $x, array $y, bool $sample=true, ?float $meanX=null, ?float $meanY=null) |
|
◆ covarianceMatrix()
static Phpml\Math\Statistic\Covariance::covarianceMatrix |
( |
array | $data, |
|
|
?array | $means = null ) |
|
static |
Returns the covariance matrix of n-dimensional data.
- Parameters
-
◆ fromDataset()
static Phpml\Math\Statistic\Covariance::fromDataset |
( |
array | $data, |
|
|
int | $i, |
|
|
int | $k, |
|
|
bool | $sample = true, |
|
|
?float | $meanX = null, |
|
|
?float | $meanY = null ) |
|
static |
Calculates covariance of two dimensions, i and k in the given data.
- Exceptions
-
The documentation for this class was generated from the following file:
- lib/mlbackend/php/phpml/src/Phpml/Math/Statistic/Covariance.php