oioioi.statistics.plotfunctions
¶
Module Contents¶
Functions¶
|
|
|
Calculates the histogram of the provided values (integers). |
|
|
|
|
|
|
|
|
|
|
|
- oioioi.statistics.plotfunctions.histogram(values, num_buckets=10, max_result=None)[source]¶
Calculates the histogram of the provided values (integers). Assumes that minimal value is 0.
- Parameters:
values – List of integers to compute the histogram.
num_buckets – Number of histogram buckets.
- Returns:
A pair of lists (boundaries, counts); boundaries contain lower bounds of bucket limits; counts contain the numbers of elements going in particular buckets.