Current Contributors

As of Nov 21, 2024.

General Information

.5){ $value++; } return $value / (pow(10, $place)); } function average($array){ $sum = array_sum($array); $count = count($array); if(!$count) return 0; return $sum/$count; } function deviation($array){ $avg = average($array); foreach ($array as $value) { $variance[] = pow($value-$avg, 2); } $sum = array_sum($variance); $count = count($variance) - 1; $deviation = sqrt($sum/$count); return $deviation; } function median($array){ asort($array); $count = count($array); $kk = array(); $kk = array_keys($array); $rem = $count%2; $count/=2; $count--; if($rem){ $count = round($count); $mk = $kk[$count]; return $array[$mk]; } $mk = $kk[$count]; $ml = $$kk[($count+1)]; $med = $array[$mk] + $array[$ml]; $med/=2; return $med; } function group($array){ $count = count($array); if($count < 30) $group = round($count * 0.20); else if($count < 50) $group = round($count * 0.15); else if($count <100) $group = round($count * 0.11); else $group = round($count * 0.06); if($group>20) $group = 20; return $group; } ?>
# Member: Organization: Email: Percent
Contribution: