Quotas

The quota module contains functions for calculating quotas used to elect candidates in single transferrable vote elections.

voting.quota.droop(votes, seats)[source]

Calculate the Droop quota.

\(\frac{votes}{seats + 1} + 1\)

Parameters
  • votes (int) – the number of votes

  • seats (int) – the number of seats

voting.quota.hagenbach_bischoff(votes, seats)[source]

Calculate the Hagenbach-Bischoff quota.

\(\frac{votes}{seats + 1}\)

Parameters
  • votes (int) – the number of votes

  • seats (int) – the number of seats

voting.quota.hare(votes, seats)[source]

Calculate the Hare quota.

\(\frac{votes}{seats}\)

Parameters
  • votes (int) – the number of votes

  • seats (int) – the number of seats

voting.quota.imperiali(votes, seats)[source]

Calculate the Imperiali quota.

\(\frac{votes}{seats + 2}\)

Parameters
  • votes (int) – the number of votes

  • seats (int) – the number of seats