$stat = new Stats();
$stat = new Stats($scale = 8, $exceptions = 8);
$scale number of decimals
$exceptions How to manage missing, null, N/A & not numeric.
default: MISSING_ZERO | NA_ZERO (missing & N/A set to 0.00)
Stats::MISSING_ZERO
Stats::MISSING_SKIP
Stats::NA_ZERO
Stats::NA_SKIP
$stat = new Stats();
for($i=1; $i<11; $i++)
$stat->push($i);
$result = $stat->stats();
Fatal error: Uncaught Error: Class "ia\Math\Stats" not found in /lamp/www/iaLib/ia_examples/usage/ia/Math/Stats_usage.php:38
Stack trace:
#0 {main}
thrown in /lamp/www/iaLib/ia_examples/usage/ia/Math/Stats_usage.php on line 38