Changeset 10 for trunk/bin/graph
- Timestamp:
- 07/13/15 19:16:30 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/graph
r6 r10 10 10 import json 11 11 12 import numpy 12 13 import matplotlib.mlab as mlab 13 14 import matplotlib.pyplot as plt … … 85 86 86 87 print('packet_rtt diff median: %f' % statistics.median(diffs)) 87 print('packet_rtt diff midhinge: %f' % mid hinge(diffs))88 print('packet_rtt diff midhinge: %f' % midsummary(diffs)) 88 89 print('packet_rtt diff trimean: %f' % trimean(diffs)) 90 print('packet_rtt diff quadsummary: %f' % quadsummary(diffs)) 91 print('packet_rtt diff ubersummary: %f' % ubersummary(diffs)) 89 92 print('packet_rtt diff MAD: %f' % mad(diffs)) 90 93 print('reported diff trimean: %f' % trimean(reported_diffs)) 94 print('reported diff quadsummary: %f' % quadsummary(reported_diffs)) 95 print('reported diff ubersummary: %f' % ubersummary(reported_diffs)) 91 96 print('reported diff MAD: %f' % mad(reported_diffs)) 97 98 import cProfile 99 kresults = kfilter({},diffs) 100 #print('packet_rtt diff kfilter: ', numpy.mean(kresults['est']), kresults['var']) 101 print('packet_rtt diff kfilter: ', kresults['est'][-1], kresults['var'][-1]) 102 kresults = kfilter({},reported_diffs) 103 #print('reported diff kfilter: ', numpy.mean(kresults['est']), kresults['var'][-1]) 104 print('reported diff kfilter: ', kresults['est'][-1], kresults['var'][-1]) 92 105 93 106
Note: See TracChangeset
for help on using the changeset viewer.