Source for file ex_stats_bigdataset.php
Documentation is available at ex_stats_bigdataset.php
//require_once 'Math/Stats.php';
require_once '../../Stats.php';
$fp = fopen("bigcummulativedata.dat", "r");
while ((list ($val, $count) = fgetcsv($fp, 80 )) !== false ) {
$stats = $s ->calcFull ();
echo "Using Math_Stats:\n"
. " mean = {$stats['mean']}\n"
. " SEmean = {$stats['std_error_of_mean']}\n"
. " std dev = {$stats['stdev']}\n"
. " quartile(25)) = {$stats['quartiles'][25]}\n"
. " median = {$stats['median']}\n"
. " quartile(75) = {$stats['quartiles'][75]}\n"
. " min = {$stats['min']}\n"
. " max = {$stats['max']}\n"
. " count = {$stats['count']}\n\n"
//Name,Mean,SEMean,StDev,Q1,Median,Q3,Min,Max,N
//SPSS,2.8627,0.0005,1.0630,2,3,4,1,41,4255666
Documentation generated on Mon, 11 Mar 2019 15:39:17 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|