Method of Sainte-Laguë
Given numbers of votes for a list of parties and a fixed total number of seats, the method of Sainte-Laguë allocates seats to each party. The article at http://en.wikipedia.org/wiki/Sainte-Lagu%C3%AB_method describes details of the method. The Matlab function sainte_lague can also return the results of the modified Sainte-Laguë method.
Version 20100928 fixes a bug with the modified Sainte-Laguë method, and adds features to facilitate the modeling of different vote scenarios.
Cite As
Stephan Buchert (2024). Method of Sainte-Laguë (https://www.mathworks.com/matlabcentral/fileexchange/28852-method-of-sainte-lague), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.