stub sainte-lague apportionment

pull/4/head
crflynn 2018-01-06 22:18:21 -05:00
rodzic 7e62a3269c
commit a1d19cb6a3
2 zmienionych plików z 14 dodań i 0 usunięć

Wyświetl plik

@ -10,6 +10,7 @@ according to lists of votes.
* :py:func:`voting.apportionment.hamilton`
* :py:func:`voting.apportionment.huntington_hill`
* :py:func:`voting.apportionment.jefferson`
* :py:func:`voting.apportionment.sainte_lague`
* :py:func:`voting.apportionment.vinton`
* :py:func:`voting.apportionment.webster`

Wyświetl plik

@ -83,6 +83,17 @@ def jefferson(votes, seats):
return ints
def sainte_lague(votes, seats):
"""Apportion seats using the Sainte-Lague method.
Identical to the Webster method.
:param list votes: a list of vote counts
:param int seats: the number of seats to apportion
"""
pass
def vinton(votes, seats):
"""Apportion seats using the Vinton method.
@ -97,6 +108,8 @@ def vinton(votes, seats):
def webster(votes, seats):
"""Apportion seats using the Webster method.
Identical to the Sainte-Lague method.
:param list votes: a list of vote counts
:param int seats: the number of seats to apportion
"""