[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[freehaven-cvs] Dump info on round distribution/percentiles



Update of /home/freehaven/cvsroot/doc/e2e-traffic/src
In directory moria.mit.edu:/tmp/cvs-serv9234

Modified Files:
	analyze.py 
Log Message:
Dump info on round distribution/percentiles 

Index: analyze.py
===================================================================
RCS file: /home/freehaven/cvsroot/doc/e2e-traffic/src/analyze.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- analyze.py	20 Jan 2004 02:20:32 -0000	1.4
+++ analyze.py	22 Jan 2004 02:55:02 -0000	1.5
@@ -194,8 +194,21 @@
 
             nrtgn = self.nRoundsToGuessN[p]
 
-            print ("%s | N:%3d succ:%3s%% guess:%3s%% rnds:%7d rndsA:%7d mmR:%7s"
-                   %(dp, nT, int(pS*100), int(pG*100), avgR, avgRA, medmed))
+            
+
+            print ("%s | N:%3d succ:%3s%% guess:%3s%% rnds:%7d rndsA:%7s"
+                   %(dp, nT, int(pS*100), int(pG*100), avgR, avgRA)),
+
+            N_NAMES=6
+            names = ["1_2","3_4", "7_8", None, "but1", "all"]
+            for percentile in 50,80,90,95:
+                pct = nrtgn.getPercentile(percentile)
+                for idx in xrange(N_NAMES):
+                    name=names[idx]
+                    val=pct[idx]
+                    if not name: continue
+                    print ("p%s_%s:%s" % (percentile, name, val)),
+            print
 
 if __name__ == '__main__':
     rs = ResultSet()

***********************************************************************
To unsubscribe, send an e-mail to majordomo@seul.org with
unsubscribe freehaven-cvs       in the body. http://freehaven.net/