cvs: pear /Math_Stats Stats.php package.xml

From: Date: Fri, 24 May 2002 00:13:09 +0000
Subject: cvs: pear /Math_Stats Stats.php package.xml
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-4065@lists.php.net to get a copy of this message
jmcastagnetto Thu May 23 20:13:09 2002 EDT Modified files: /pear/Math_Stats Stats.php package.xml Log: Bugfixes in utility methods that made them calculate incorrect variance, standard deviation, etc. Index: pear/Math_Stats/Stats.php diff -u pear/Math_Stats/Stats.php:1.5 pear/Math_Stats/Stats.php:1.6 --- pear/Math_Stats/Stats.php:1.5 Thu May 16 19:06:15 2002 +++ pear/Math_Stats/Stats.php Thu May 23 20:13:08 2002 @@ -16,7 +16,7 @@ // | Authors: Jesus M. Castagnetto <jmcastagnetto@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Stats.php,v 1.5 2002/05/16 23:06:15 jmcastagnetto Exp $ +// $Id: Stats.php,v 1.6 2002/05/24 00:13:08 jmcastagnetto Exp $ // include_once "PEAR.php"; @@ -706,7 +706,7 @@ foreach ($this->_data as $val=>$freq) $sdiff += $freq * pow(($val - $mean), $power); } else { - foreach ($this->_data as $val=>$freq) + foreach ($this->_data as $val) $sdiff += pow(($val - $mean), $power); } return $sdiff; Index: pear/Math_Stats/package.xml diff -u pear/Math_Stats/package.xml:1.2 pear/Math_Stats/package.xml:1.3 --- pear/Math_Stats/package.xml:1.2 Thu May 16 00:50:45 2002 +++ pear/Math_Stats/package.xml Thu May 23 20:13:08 2002 @@ -26,10 +26,11 @@ <release> <license>PHP</license> - <version>0.8.0</version> - <date>2002-05-15</date> + <version>0.8.1</version> + <date>2002-05-23</date> <notes> - Initial release under PEAR + Bug fix in __sumdiff() and in __sumabsdev(), which made + the variance, standard deviation, etc. be calculated incorrectly. </notes> <state>beta</state> <filelist> @@ -50,6 +51,12 @@ <notes> Initial release </notes> + <version>0.8.1</version> + <date>2002-05-23</date> + <notes> + Bug fix in __sumdiff() and in __sumabsdev(), which made + the variance, standard deviation, etc. be calculated incorrectly. + </notes> </release> </changelog>

« previous php.pear.cvs (#4065) next »