jontingvold / pyrankvote

PyRankVote is a python library for different ranked-choice voting systems, like IRV, STV and PBV. Created in June 2019.
MIT License
53 stars 16 forks source link

Droop quota inconsistency #17

Open aleifer opened 2 years ago

aleifer commented 2 years ago

There appears to be an inconsistency in the implementation of the droop quota. The readme states:

droop_quota = votes/(seats+1) + 1

But the code in multiple_seat_ranking_methods.py and the associated inline documentation use a different definition that omits the additional +1:

votes_needed_to_win: float = voters / float((seats + 1)) # Drop quota

From the inline documentation (line 139):

   droop_quota = votes/(seats+1)