Lines Matching refs:quantiles
2228 quantiles = statistics.quantiles
2245 self.assertEqual(expected, quantiles(data, n=n))
2246 self.assertEqual(len(quantiles(data, n=n)), n - 1)
2249 result = quantiles(map(datatype, data), n=n)
2254 self.assertEqual(quantiles(expected, n=n), expected)
2263 quantiles(data, n=n),
2264 quantiles(padded_data, n=n, method='inclusive'),
2271 act = quantiles(map(f, data), n=n)
2276 q1, q2, q3 = quantiles(data)
2283 quantiles = statistics.quantiles
2300 self.assertEqual(expected, quantiles(data, n=n, method="inclusive"))
2301 self.assertEqual(len(quantiles(data, n=n, method="inclusive")), n - 1)
2304 result = quantiles(map(datatype, data), n=n, method="inclusive")
2311 act = quantiles(map(f, data), n=n, method="inclusive")
2314 self.assertEqual(quantiles([0, 100], n=10, method='inclusive'),
2316 self.assertEqual(quantiles(range(0, 101), n=10, method='inclusive'),
2322 actual = quantiles(data, n=32, method='inclusive')
2325 expected = quantiles(data, n=32)
2330 q1, q2, q3 = quantiles(data, method='inclusive')
2334 quantiles = statistics.quantiles
2337 self.assertEqual(quantiles(data), [10.0, 10.0, 10.0])
2338 self.assertEqual(quantiles(data, method='inclusive'),
2342 quantiles = statistics.quantiles
2353 [bisect.bisect(data, q) for q in quantiles(data, n=n)],
2360 pos = [bisect.bisect(data, q) for q in quantiles(data, n=n)]
2365 quantiles = statistics.quantiles
2368 quantiles() # Missing arguments
2370 quantiles([10, 20, 30], 13, n=4) # Too many arguments
2372 quantiles([10, 20, 30], 4) # n is a positional argument
2374 quantiles([10, 20, 30], n=0) # n is zero
2376 quantiles([10, 20, 30], n=-1) # n is negative
2378 quantiles([10, 20, 30], n=1.5) # n is not an integer
2380 quantiles([10, 20, 30], method='X') # method is unknown
2382 quantiles([10], n=4) # not enough data points
2384 quantiles([10, None, 30], n=4) # data is non-numeric
2610 actual = Z.quantiles(n=n)