Changeset 0bdd8d2a


Ignore:
Timestamp:
Oct 30, 2017, 5:44:03 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
8a48f4b
Parents:
bb7e3d4
Message:

Updated stat script to round after 2 decimals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/stat.py

    rbb7e3d4 r0bdd8d2a  
    1414                content.remove(max(content))
    1515                content.remove(min(content))
    16                 print "median {0} avg {1} stddev {2}".format( numpy.median(content), numpy.mean(content), numpy.std(content) )
     16                med = numpy.around( numpy.median(content), decimals=1)
     17                avg = numpy.around( numpy.mean  (content), decimals=2)
     18                std = numpy.around( numpy.std   (content), decimals=2)
     19                print "median {0} avg {1} stddev {2}".format( med, avg, std )
    1720
    1821
Note: See TracChangeset for help on using the changeset viewer.