:py:mod:`oioioi.statistics.plotfunctions` ========================================= .. py:module:: oioioi.statistics.plotfunctions Module Contents --------------- Functions ~~~~~~~~~ .. autoapisummary:: oioioi.statistics.plotfunctions.int_score oioioi.statistics.plotfunctions.histogram oioioi.statistics.plotfunctions.results_histogram_for_queryset oioioi.statistics.plotfunctions.points_histogram_contest oioioi.statistics.plotfunctions.points_histogram_problem oioioi.statistics.plotfunctions.submissions_by_problem_histogram_for_queryset oioioi.statistics.plotfunctions.submissions_histogram_contest oioioi.statistics.plotfunctions.points_to_source_length_problem oioioi.statistics.plotfunctions.test_scores .. py:function:: int_score(score, default=0) .. py:function:: histogram(values, num_buckets=10, max_result=None) Calculates the histogram of the provided values (integers). Assumes that minimal value is 0. :param values: List of integers to compute the histogram. :param 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. .. py:function:: results_histogram_for_queryset(request, qs, max_score=None) .. py:function:: points_histogram_contest(request, contest) .. py:function:: points_histogram_problem(request, problem) .. py:function:: submissions_by_problem_histogram_for_queryset(qs) .. py:function:: submissions_histogram_contest(request, contest) .. py:function:: points_to_source_length_problem(request, problem) .. py:function:: test_scores(request, problem)