Description
For positive integer totalSeats, groupSeats within it, and populationFraction in (0,1], return seatFraction=groupSeats/totalSeats, gap=seatFraction-populationFraction, and parityRatio=seatFraction/populationFraction.
Election and representation indicators depend on the selected vote, seat, population, or eligibility denominator. A threshold also needs an explicit equality and rounding rule. A single quotient, balance, or share can support a larger counting workflow without implementing the full electoral procedure.
For positive integer totalSeats, groupSeats within it, and populationFraction in (0,1], return seatFraction=groupSeats/totalSeats, gap=seatFraction-populationFraction, and parityRatio=seatFraction/populationFraction.
When to use this tool
Use Representation Parity Seat Share Gap when you need this particular counting term under an explicit vote, seat, threshold, or reporting-base rule.
How to use the tool and how it works
- Enter groupSeats, totalSeats, populationFraction. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read seatFraction, gap, parityRatio. Use the output convention below.
For positive integer totalSeats, groupSeats within it, and populationFraction in (0,1], return seatFraction=groupSeats/totalSeats, gap=seatFraction-populationFraction, and parityRatio=seatFraction/populationFraction.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| groupSeats | Group Seats | Required. Safe integer; minimum 0. |
| totalSeats | Total Seats | Required. Safe integer; minimum 1. |
| populationFraction | Population Fraction | Required. Finite number; maximum 1; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| seatFraction | Seat Fraction | Required. Finite number. |
| gap | Signed difference under the stated formula and measurement unit. | Required. Finite number. |
| parityRatio | Parity Ratio | Required. Finite number. |
{
"input": {
"groupSeats": 30,
"totalSeats": 100,
"populationFraction": 0.5
},
"output": {
"seatFraction": 0.3,
"gap": -0.2,
"parityRatio": 0.6
}
} Limitations and assumptions
- The supplied group and population bases determine interpretation. Gap is a fraction difference; the ratio alone does not explain representation patterns or establish legal parity.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Signed zero is exported as zero.
Alternative or Complementary methods
Compare the supplied counting rule with the authoritative procedure for the relevant election or chamber. Complete allocations need additional eligibility, ranking, transfer, tie, and reporting rules beyond one arithmetic term.
References
Similar or alternative tools
- Bicameral Seat Share One Chamber
For positive integer occupiedSeats, partySeats within occupiedSeats, and nonnegative vacantSeats choose denominator=occupiedSeats plus vacantSeats only if includeVacancies; return share=partySeats/denominator.
- D Hondt One Quotient Next Seat
For nonnegative integer votes and seatsWon return divisor=seatsWon+1 and quotient=votes/divisor.