Lines Matching refs:parray
44 parray = np.zeros(11)
45 parray[0] = 2 * (cdf(0.5, alpha, beta) - 0.5)
46 parray[1] = (2 * (cdf(1.5, alpha, beta) - cdf(0.5, alpha, beta)))
47 parray[2] = (2 * (cdf(2.5, alpha, beta) - cdf(1.5, alpha, beta)))
48 parray[3] = (2 * (cdf(3.5, alpha, beta) - cdf(2.5, alpha, beta)))
49 parray[4] = (2 * (cdf(4.5, alpha, beta) - cdf(3.5, alpha, beta)))
50 parray[5] = (2 * (cdf(6.5, alpha, beta) - cdf(4.5, alpha, beta)))
51 parray[6] = (2 * (cdf(10.5, alpha, beta) - cdf(6.5, alpha, beta)))
52 parray[7] = (2 * (cdf(18.5, alpha, beta) - cdf(10.5, alpha, beta)))
53 parray[8] = (2 * (cdf(34.5, alpha, beta) - cdf(18.5, alpha, beta)))
54 parray[9] = (2 * (cdf(66.5, alpha, beta) - cdf(34.5, alpha, beta)))
55 parray[10] = 2 * (1. - cdf(66.5, alpha, beta))
56 return parray
97 parray = get_spareto(p, beta)
98 parray = parray[1:] / (1 - parray[0])
101 parray = parray[1:] / (1 - parray[0])
102 qarray = quantize_probs(parray, first_token == 1, bits)
109 parray = get_quantized_spareto(q / 256., beta, bits, first_token)
110 assert parray.sum() == 2**bits
111 print '{', ', '.join('%d' % i for i in parray), '},'