Lines Matching refs:nominal
42 def byteCost(widths, default, nominal): argument
53 diff = abs(w - nominal)
76 bestCostWithoutDefault = min(byteCost(widths, None, nominal) for nominal in domain)
79 for nominal in domain:
80 if byteCost(widths, None, nominal) > bestCost + maxDefaultAdvantage:
83 cost = byteCost(widths, default, nominal)
87 bestNominal = nominal
128 nominal = min(domain, key=lambda x: bestCost[x])
131 bestC = bestCost[nominal]
132 dfltC = nomnCost[nominal] - bestCost[nominal]
134 if dfltC == dfltCostU[nominal]:
135 starts = [nominal, nominal-108, nominal-1131]
141 starts = [nominal, nominal+108, nominal+1131]
146 default = min(ends, key=lambda default: byteCost(widths, default, nominal))
148 return default, nominal
160 default, nominal = optimizeWidths(widths) variable
161 …lt=%d nominal=%d byteCost=%d" % (len(widths), default, nominal, byteCost(widths, default, nominal)…