Module methods

Module methods 

Source
Expand description

A collection of methods that can be used to tabulate the results of an election.

Structs§

Approval
A single-winner, nominal voting method. The winner is the candidate(s) with the most approvals.
Borda
A single-winner, ranked voting method. Each rank (in the ballot) is given a value corresponding to its order. With n candidates, 1st is n-1, 2nd is n-2, and so on, with last having a value of 0. The candidate whose sum of ranks is highest is the winner.
IRV
A single-winner, ranked voting method. The candidate with the fewest votes is eliminated in each round, and votes for the eliminated candidate are redistributed to the next preference. This process continues until one candidate has a majority.
Plurality
A single-winner, ranked voting method. The candidate with the most votes (a plurality) wins.
RandomDictator
A single-winner ranked voting method. The winner is determined by selecting a random ballot and returning the winner(s) of that ballot. That ballot is the only ballot that matters, hence the title “random dictator”.
STV
A multi-winner, ranked voting method. Candidates with the fewest votes are eliminated in each round, and their votes are transferred to the next preference. This process continues until candidates achieve a required quota or all positions are filled.
Star
A single-winner, cardinal voting method. The two candidates with the highest scores advance to a runoff, where the candidate with the most votes in the runoff wins.