Version 0 of Imperiali

Updated 2006-09-29 05:59:16

Calculate number of seats per party using the 'Imperiali' system as used in Flanders (Belgium) for local elections.

Each party gets a vote count. This vote count is the number of votes for the party. This count includes:

  • Votes for the party only
  • Votes for the party and one or more individuals of the same party
  • Votes for one or more individuals of the same party

Each of the above counts as '1' in the vote count.

To calculate the seats, all vote counts are divide by 2, 3, 4, 5, 6, ... These division results are sorted high to low and seats are allocated according to this sorted list. When allocating the last seat and the division results are equal for two or more parties, the party with the largest vote count gets the seat. When the vote count is also equal, the candidate with the most individual votes gets the seat. If they have the same number of individual votes, the oldest candidate gets the seat. These last rules are not implemented in this script. When not sure which party gets the seat, the seats still to be decide are colored orange. Allocated seats are colored green.