Lines Matching full:representation
10 # bench representation algorithm constant names
83 """Algorithm for selecting the representation value from a given list.
84 representation is one of the ALGORITHM_XXX representation types."""
85 def __init__(self, data, representation=None):
86 if not representation:
87 representation = ALGORITHM_AVERAGE # default algorithm
90 if representation == ALGORITHM_AVERAGE:
94 if representation == ALGORITHM_MINIMUM:
99 if representation == ALGORITHM_MEDIAN:
101 elif representation == ALGORITHM_25TH_PERCENTILE:
104 raise Exception("invalid representation algorithm %s!" %
105 representation)
112 value_dic, layout_dic, representation=None):
123 representation: should match one of the ALGORITHM_XXX types."""
140 _ListAlgorithm(iters, representation).compute())
144 def parse(settings, lines, representation=None):
148 representation is one of the ALGORITHM_XXX types."""
177 bench_dic, layout_dic, representation)
181 bench_dic, layout_dic, representation)