Lines Matching refs:quantiles
2254 quantiles = statistics.quantiles
2271 self.assertEqual(expected, quantiles(data, n=n))
2272 self.assertEqual(len(quantiles(data, n=n)), n - 1)
2275 result = quantiles(map(datatype, data), n=n)
2280 self.assertEqual(quantiles(expected, n=n), expected)
2289 quantiles(data, n=n),
2290 quantiles(padded_data, n=n, method='inclusive'),
2297 act = quantiles(map(f, data), n=n)
2302 q1, q2, q3 = quantiles(data)
2309 quantiles = statistics.quantiles
2326 self.assertEqual(expected, quantiles(data, n=n, method="inclusive"))
2327 self.assertEqual(len(quantiles(data, n=n, method="inclusive")), n - 1)
2330 result = quantiles(map(datatype, data), n=n, method="inclusive")
2337 act = quantiles(map(f, data), n=n, method="inclusive")
2340 self.assertEqual(quantiles([0, 100], n=10, method='inclusive'),
2342 self.assertEqual(quantiles(range(0, 101), n=10, method='inclusive'),
2348 actual = quantiles(data, n=32, method='inclusive')
2351 expected = quantiles(data, n=32)
2356 q1, q2, q3 = quantiles(data, method='inclusive')
2360 quantiles = statistics.quantiles
2363 self.assertEqual(quantiles(data), [10.0, 10.0, 10.0])
2364 self.assertEqual(quantiles(data, method='inclusive'),
2368 quantiles = statistics.quantiles
2379 [bisect.bisect(data, q) for q in quantiles(data, n=n)],
2386 pos = [bisect.bisect(data, q) for q in quantiles(data, n=n)]
2391 quantiles = statistics.quantiles
2394 quantiles() # Missing arguments
2396 quantiles([10, 20, 30], 13, n=4) # Too many arguments
2398 quantiles([10, 20, 30], 4) # n is a positional argument
2400 quantiles([10, 20, 30], n=0) # n is zero
2402 quantiles([10, 20, 30], n=-1) # n is negative
2404 quantiles([10, 20, 30], n=1.5) # n is not an integer
2406 quantiles([10, 20, 30], method='X') # method is unknown
2408 quantiles([10], n=4) # not enough data points
2410 quantiles([10, None, 30], n=4) # data is non-numeric
2714 actual = Z.quantiles(n=n)