oioioi.statistics.plotfunctions

Module Contents

Functions

int_score(score[, default])

histogram(values[, num_buckets, max_result])

Calculates the histogram of the provided values (integers).

results_histogram_for_queryset(request, qs[, max_score])

points_histogram_contest(request, contest)

points_histogram_problem(request, problem)

submissions_by_problem_histogram_for_queryset(qs)

submissions_histogram_contest(request, contest)

points_to_source_length_problem(request, problem)

test_scores(request, problem)

oioioi.statistics.plotfunctions.int_score(score, default=0)[source]
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.

oioioi.statistics.plotfunctions.results_histogram_for_queryset(request, qs, max_score=None)[source]
oioioi.statistics.plotfunctions.points_histogram_contest(request, contest)[source]
oioioi.statistics.plotfunctions.points_histogram_problem(request, problem)[source]
oioioi.statistics.plotfunctions.submissions_by_problem_histogram_for_queryset(qs)[source]
oioioi.statistics.plotfunctions.submissions_histogram_contest(request, contest)[source]
oioioi.statistics.plotfunctions.points_to_source_length_problem(request, problem)[source]
oioioi.statistics.plotfunctions.test_scores(request, problem)[source]