[CalendarServer-changes] [6317] CalendarServer/trunk/contrib/performance/compare.py

source_changes at macosforge.org source_changes at macosforge.org
Mon Sep 20 10:05:23 PDT 2010


Revision: 6317
          http://trac.macosforge.org/projects/calendarserver/changeset/6317
Author:   exarkun at twistedmatrix.com
Date:     2010-09-20 10:05:22 -0700 (Mon, 20 Sep 2010)
Log Message:
-----------
aforementioned T stat reference

Modified Paths:
--------------
    CalendarServer/trunk/contrib/performance/compare.py

Modified: CalendarServer/trunk/contrib/performance/compare.py
===================================================================
--- CalendarServer/trunk/contrib/performance/compare.py	2010-09-20 17:01:27 UTC (rev 6316)
+++ CalendarServer/trunk/contrib/performance/compare.py	2010-09-20 17:05:22 UTC (rev 6317)
@@ -14,10 +14,13 @@
             libc = CDLL(lib)
         except OSError:
             pass
+        else:
+            break
     gamma = libc.tgamma
     gamma.argtypes = [c_double]
     gamma.restype = c_double
     def ttest_1samp(a, popmean):
+        # T statistic - http://mathworld.wolfram.com/Studentst-Distribution.html
         t = (stats.mean(a) - popmean) / (stats.stddev(a) / len(a) ** 0.5)
         v = len(a) - 1.0
         p = gamma((v + 1) / 2) / ((v * pi) ** 0.5 * gamma(v / 2)) * (1 + t ** 2 / v) ** (-(v + 1) / 2)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100920/7ce7061f/attachment.html>


More information about the calendarserver-changes mailing list