[avida-cvs] avida CVS commits: /current/source/tools stat.hh
dule123
avida-cvs at alife.org
Sat Oct 11 04:51:19 PDT 2003
dule123 Fri Oct 10 20:51:19 2003 EDT
Modified files:
/avida/current/source/tools stat.hh
Log:
fixing the formula used to calculate Standard Error in various parameters
Index: avida/current/source/tools/stat.hh
diff -u avida/current/source/tools/stat.hh:1.8 avida/current/source/tools/stat.hh:1.9
--- avida/current/source/tools/stat.hh:1.8 Sat May 17 02:48:15 2003
+++ avida/current/source/tools/stat.hh Fri Oct 10 20:51:18 2003
@@ -111,7 +111,11 @@
//n*(s2/n - s1/n*s1/n) / (n-1) : INF_ERR; }
double StdDeviation() const { return sqrt(Variance()); }
double StdError() const { return (n > 1) ?
- sqrt(s2 / (n * (n-1))) : INF_ERR; }
+ sqrt(Variance()/n) : INF_ERR; }
+
+// old formula, implemented by TCC, not sure how it relates to
+// the real Standard Error
+// sqrt(s2 / (n * (n-1))) : INF_ERR; }
double Skewness() const { return ( n > 2 ) ?
(n*s3 - 3*s2*s1 + 2*s1*s1*s1/n) / ((n-1)*(n-2)) : INF_ERR; }
More information about the Avida-cvs
mailing list