Namespace: typesVotesForGeomGrid

typesVotesForGeomGrid

Type Definitions

votesForGeomGrid

Vote data for just one voter geometry in the form of a grid, 1D or 2D.
Type:
  • votesForGeomGridRanking | votesForGeomGridPairwise | votesForGeomGridPlurality | votesForGeomGridScore
Source:

votesForGeomGridPairwise

Type:
  • object
Properties:
Name Type Description
grid typesGrid.grid data for points on a grid
voteSet Array.<typesVote.rankingVote> a vote for each grid point
totalVotes number
bordaFractionAverageByCan Array.<number>
winsPairwise Array.<Array.<number>> The number of wins for the first of a pair of candidates.
Source:

votesForGeomGridPlurality

Type:
  • object
Properties:
Name Type Attributes Description
countByCan Array.<number>
totalVotes number
grid typesGrid.grid <optional>
data for points on a grid
voteSet Array.<typesVote.pluralityVote> <optional>
a vote for each grid point
Source:

votesForGeomGridRanking

Type:
  • object
Properties:
Name Type Attributes Description
grid typesGrid.grid <optional>
data for points on a grid
voteSet Array.<typesVote.rankingVote> <optional>
a vote for each grid point
voteCounts Array.<number>
totalVotes number
bordaFractionAverageByCan Array.<number> <optional>
rankings typesVoteArrays.rankings <optional>
cansByRankList typesVoteArrays.cansByRankList cansByRank for each grid point
Source:

votesForGeomGridScore

Type:
  • object
Properties:
Name Type Attributes Description
scoreSumByCan Array.<number>
totalVotes number
grid typesGrid.grid <optional>
data for points on a grid
voteSet Array.<typesVote.scoreVote> <optional>
a vote for each grid point
voterGeom typesGeoms.voterGeom <optional>
Source:

votesForGeomGridScoreFull

Type:
  • object
Properties:
Name Type Attributes Description
scoreSumByCan Array.<number>
totalVotes number
voteCounts Array.<number>
voteSet Array.<typesVote.scoreVote> a vote for each grid point
grid typesGrid.grid <optional>
data for points on a grid
voterGeom typesGeoms.voterGeom <optional>
Source: