Changeset 10 for trunk/bin/graph


Ignore:
Timestamp:
07/13/15 19:16:30 (9 years ago)
Author:
tim
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/graph

    r6 r10  
    1010import json
    1111
     12import numpy
    1213import matplotlib.mlab as mlab
    1314import matplotlib.pyplot as plt
     
    8586
    8687print('packet_rtt diff median: %f' % statistics.median(diffs))
    87 print('packet_rtt diff midhinge: %f' % midhinge(diffs))
     88print('packet_rtt diff midhinge: %f' % midsummary(diffs))
    8889print('packet_rtt diff trimean: %f' % trimean(diffs))
     90print('packet_rtt diff quadsummary: %f' % quadsummary(diffs))
     91print('packet_rtt diff ubersummary: %f' % ubersummary(diffs))
    8992print('packet_rtt diff MAD: %f' % mad(diffs))
    9093print('reported diff trimean: %f' % trimean(reported_diffs))
     94print('reported diff quadsummary: %f' % quadsummary(reported_diffs))
     95print('reported diff ubersummary: %f' % ubersummary(reported_diffs))
    9196print('reported diff MAD: %f' % mad(reported_diffs))
     97
     98import cProfile
     99kresults = kfilter({},diffs)
     100#print('packet_rtt diff kfilter: ', numpy.mean(kresults['est']), kresults['var'])
     101print('packet_rtt diff kfilter: ', kresults['est'][-1], kresults['var'][-1])
     102kresults = kfilter({},reported_diffs)
     103#print('reported diff kfilter: ', numpy.mean(kresults['est']), kresults['var'][-1])
     104print('reported diff kfilter: ', kresults['est'][-1], kresults['var'][-1])
    92105
    93106
Note: See TracChangeset for help on using the changeset viewer.