Search results

4 packages found

Sainte-Laguë method for seat distribution used in multiple parliamentary elections all over the world

published 3.0.0 2 years ago
M
Q
P

Zero-dependency and extensible set of highest averages methods for allocating seats in a parliament. ### Install ```shell npm i highest-averages ``` ### Pure Example - Define the candidates with their vote ```typescript const a = new Candidate('A', 200) c

published 1.0.3 a year ago
M
Q
P

Run a spatial election model. Input geometry. Cast votes. Use a social choice function. Collect results. Also combine multiple elections across geography, districts, samplings, and polling.

published 0.0.5 a month ago
M
Q
P

Calculates Sainte-Laguë for an election result.

published 1.0.0 4 years ago
M
Q
P