1.2.1606. ext/stats¶
Statistics extension.
This extension contains few dozens of functions useful for statistical computations. It is a wrapper around 2 scientific libraries, namely DCDFLIB (Library of C routines for Cumulative Distributions Functions, Inverses, and Other parameters) by B. Brown & J. Lavato and RANDLIB by Barry Brown, James Lavato & Kathy Russell.
<?php
$x = [ 15, 16, 8, 6, 15, 12, 12, 18, 12, 20, 12, 14, ];
$y = [ 17.24, 15, 14.91, 4.5, 18, 6.29, 19.23, 18.69, 7.21, 42.06, 7.5, 8,];
sprintf("%2.9f", stats_covariance($a_1, $a_2));
?>
See also Statistics and ext/stats.
1.2.1606.1. Specs¶
Short name |
Extensions/Extstats |
Rulesets |
|
Exakat since |
0.11.5 |
PHP Version |
All |
Severity |
|
Time To Fix |
|
Precision |
Very high |
Available in |