- Source:
Type Definitions
socialChoiceOptions
options to specify a social choice function.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
seats |
number |
<optional> |
Number of candidates to elect. |
seatLimits |
Array.<number> |
<optional> |
Upper limit of number of candidates to elect from each party, useful for OLPR. |
threshold |
number |
<optional> |
The minimum fraction of voters that a party needs to be eligible for a seat. |
- Source:
socialChoiceResults
the results returned from a social choice function.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
iWinner |
number |
<optional> |
|
allocation |
Array.<number> |
<optional> |
says whether each candidate is elected (1) or not (0). Allocation also applies to parties. It says how many seats were allocated to each party. |