Home | History | Annotate | Download | only in bench

Lines Matching full:representation

10 # bench representation algorithm constant names
55 """Algorithm for selecting the representation value from a given list.
56 representation is one of the ALGORITHM_XXX representation types."""
57 def __init__(self, data, representation=None):
58 if not representation:
59 representation = ALGORITHM_AVERAGE # default algorithm
62 if representation == ALGORITHM_AVERAGE:
66 if representation == ALGORITHM_MINIMUM:
71 if representation == ALGORITHM_MEDIAN:
73 elif representation == ALGORITHM_25TH_PERCENTILE:
76 raise Exception("invalid representation algorithm %s!" %
77 representation)
84 representation=None):
91 representation: should match one of the ALGORITHM_XXX types."""
104 iters, representation).compute())
106 def parse(settings, lines, representation=None):
110 representation is one of the ALGORITHM_XXX types."""
148 bench_dic, representation)