- Source:
Type Definitions
candidateTallies
vote tallies indexed by candidate
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
voteFractionsByCan |
Array.<number> |
<optional> |
The fraction of plurality votes for each candidate. |
scoreFractionAverageByCan |
Array.<number> |
<optional> |
the average fractional score for each candidate. |
firstPreferenceFractions |
Array.<number> |
<optional> |
A list of fractions of voters who ranked a candidate first, indexed by candidate. |
bordaFractionAverageByCan |
Array.<number> |
<optional> |
The average fractional borda score for a candidate. |
- Source:
pairwiseTallies
pairwise tallies
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
winFractionPairwise |
Array.<Array.<number>> | The fraction of wins for the first of a pair of candidates. who preferred candidate i over k, indexed by [i][k]. |
- Source:
preferenceLists
Lists of preferences.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
scoreVotes |
typesVoteArrays.scoreVotes |
<optional> |
|
rankings |
typesVoteArrays.rankings |
<optional> |
|
cansByRankList |
typesVoteArrays.cansByRankList |
<optional> |
- Source:
preferenceTallies
How many votes have a listed preference.
Type:
- object
Properties:
Name | Type | Description |
---|---|---|
voteFractions |
Array.<number> | The fraction of voters who share the same preference. |
- Source:
votes
The vote a data structure that contains the information needed to elect, explain, and visualize.
Type:
- object
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
preferenceLists |
preferenceLists |
<optional> |
Lists of preferences. |
preferenceTallies |
preferenceTallies |
<optional> |
How many votes have a listed preference. |
candidateTallies |
candidateTallies |
<optional> |
vote tallies indexed by candidate |
pairwiseTallies |
pairwiseTallies |
<optional> |
pairwise tallies |
votesByGeom |
Array.<typesVotesForGeom.votesForGeom> |
<optional> |
Vote data for each voter geometry. A list of votesForGeom. |
parties |
typesGeometry.parties |
<optional> |
describes parties each candidate belongs to. |
numCans |
number | the number of candidates, comes in handy. |
- Source: