kopia lustrzana https://github.com/crflynn/voting
stub sainte-lague apportionment
rodzic
7e62a3269c
commit
a1d19cb6a3
|
@ -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`
|
||||
|
||||
|
|
|
@ -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
|
||||
"""
|
||||
|
|
Ładowanie…
Reference in New Issue