Apportionments¶
The apportionment module provides functions for apportioning seats
according to lists of votes.
-
voting.apportionment.adams(votes, seats)[source]¶ Apportion seats using the Adams method.
- Parameters
votes (list) – a list of vote counts
seats (int) – the number of seats to apportion
-
voting.apportionment.dhondt(votes, seats)[source]¶ Apportion seats using the D’Hondt method.
Identical to the Jefferson method.
- Parameters
votes (list) – a list of vote counts
seats (int) – the number of seats to apportion
-
voting.apportionment.hagenbach_bischoff(votes, seats)[source]¶ Apportion seats using the Hagenbach-Bischoff method.
Identical to the Jefferson method.
- Parameters
votes (list) – a list of vote counts
seats (int) – the number of seats to apportion
-
voting.apportionment.hamilton(votes, seats)[source]¶ Apportion seats using the Hamilton method.
Known also as the Vinton method.
- Parameters
votes (list) – a list of vote counts
seats (int) – the number of seats to apportion
-
voting.apportionment.huntington_hill(votes, seats)[source]¶ Apportion seats using the Huntington-Hill method.
- Parameters
votes (list) – a list of vote counts
seats (int) – the number of seats to apportion
-
voting.apportionment.jefferson(votes, seats)[source]¶ Apportion seats using the Jefferson method.
Known also as the D’Hondt method or Hagenbach-Bischoff method.
- Parameters
votes (list) – a list of vote counts
seats (int) – the number of seats to apportion
-
voting.apportionment.sainte_lague(votes, seats)[source]¶ Apportion seats using the Sainte-Lague method.
Identical to the Webster method.
- Parameters
votes (list) – a list of vote counts
seats (int) – the number of seats to apportion