Home | History | Annotate | Download | only in encodings

Lines Matching refs:bias

72 def T(j, bias):
74 res = 36 * (j + 1) - bias
80 def generate_generalized_integer(N, bias):
85 t = T(j, bias)
104 bias = divisions + (36 * delta // (delta + 38))
105 return bias
109 """3.4 Bias adaptation"""
110 # Punycode parameters: initial bias = 72, damp = 700, skew = 38
112 bias = 72
114 s = generate_generalized_integer(delta, bias)
116 bias = adapt(delta, points==0, baselen+points+1)
130 def decode_generalized_number(extended, extpos, bias, errors):
152 t = T(j, bias)
164 bias = 72
168 bias, errors)
181 bias = adapt(delta, (extpos == 0), len(base))