Home
last modified time | relevance | path

Searched refs:StatisticsError (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/
Dstatistics.py98 class StatisticsError(ValueError): class
284 raise StatisticsError(errmsg)
310 raise StatisticsError('mean requires at least one data point')
345 raise StatisticsError('harmonic_mean requires at least one data point')
350 raise StatisticsError(errmsg)
379 raise StatisticsError("no median for empty data")
402 raise StatisticsError("no median for empty data")
424 raise StatisticsError("no median for empty data")
457 raise StatisticsError("no median for empty data")
505 raise StatisticsError(
[all …]
/external/python/cpython3/Doc/library/
Dstatistics.rst79 If *data* is empty, :exc:`StatisticsError` will be raised.
140 :exc:`StatisticsError` is raised if *data* is empty, or any element
149 middle two" method. If *data* is empty, :exc:`StatisticsError` is raised.
182 :exc:`StatisticsError` is raised. *data* can be a sequence or iterator.
201 Return the high median of data. If *data* is empty, :exc:`StatisticsError`
222 percentile, using interpolation. If *data* is empty, :exc:`StatisticsError`
277 :exc:`StatisticsError` is raised.
323 Raises :exc:`StatisticsError` if *data* is empty.
397 Raises :exc:`StatisticsError` if *data* has fewer than two values.
448 .. exception:: StatisticsError
/external/python/cpython3/Lib/test/
Dtest_statistics.py686 issubclass(statistics.StatisticsError, ValueError),
687 errmsg % statistics.StatisticsError.__base__
1000 self.assertRaises(statistics.StatisticsError, next, it)
1007 except statistics.StatisticsError as e:
1026 self.assertRaises(statistics.StatisticsError, self.func, empty)
1452 exc = statistics.StatisticsError
1770 self.assertRaises(statistics.StatisticsError, self.func, data)
1792 self.assertRaises(statistics.StatisticsError, self.func, data)
1797 self.assertRaises(statistics.StatisticsError, self.func, data)
1811 self.assertRaises(statistics.StatisticsError, self.func, data)
[all …]