OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:StatisticsError
(Results
1 - 3
of
3
) sorted by null
/external/python/cpython3/Lib/
statistics.py
75
A single exception is defined:
StatisticsError
is a subclass of ValueError.
79
__all__ = [ '
StatisticsError
',
99
class
StatisticsError
(ValueError):
285
raise
StatisticsError
(errmsg)
305
If ``data`` is empty,
StatisticsError
will be raised.
311
raise
StatisticsError
('mean requires at least one data point')
336
``harmonic_mean`` will raise ``
StatisticsError
``.
346
raise
StatisticsError
('harmonic_mean requires at least one data point')
351
raise
StatisticsError
(errmsg)
380
raise
StatisticsError
("no median for empty data"
[
all
...]
/frameworks/base/tests/JankBench/scripts/external/
statistics.py
91
A single exception is defined:
StatisticsError
is a subclass of ValueError.
95
__all__ = [ '
StatisticsError
',
113
class
StatisticsError
(ValueError):
324
If ``data`` is empty,
StatisticsError
will be raised.
330
raise
StatisticsError
('mean requires at least one data point')
353
raise
StatisticsError
("no median for empty data")
376
raise
StatisticsError
("no median for empty data")
398
raise
StatisticsError
("no median for empty data")
431
raise
StatisticsError
("no median for empty data")
466
StatisticsError
[
all
...]
/external/python/cpython3/Lib/test/
test_statistics.py
680
"Expected
StatisticsError
to be a ValueError, but got a"
683
self.assertTrue(hasattr(statistics, '
StatisticsError
'))
685
issubclass(statistics.
StatisticsError
, ValueError),
686
errmsg % statistics.
StatisticsError
.__base__
[
all
...]
Completed in 105 milliseconds