Namespace: typesVotesForGeom

typesVotesForGeom

Type Definitions

rankingIntervals1D

calculated intervals of 1D policy space where voters share the same ranking.
Type:
  • object
Properties:
Name Type Description
rankings typesVoteArrays.rankings rankings for each interval
cansByRankList typesVoteArrays.cansByRankList cansByRank for each interval
intervalBorders Array.<number> midpoints and two infinity points
Source:

rankingPolygons2D

calculated cells of 2D policy space where voters share the same ranking.
Type:
  • object
Properties:
Name Type Description
cells Array.<Array.<Array.<number>>> each cell is a list of points.
rankings typesVoteArrays.rankings rankings for each cell
cansByRankList typesVoteArrays.cansByRankList cansByRank for each cell
Source:

votesForGeomCells

Vote data for just one voter geometry in the form of 2D cells.
Type:
  • object
Properties:
Name Type Description
cells Array.<Array.<Array.<number>>> each cell is a list of points.
rankings typesVoteArrays.rankings rankings for each cell
cansByRankList typesVoteArrays.cansByRankList cansByRank for each cell
voteCounts Array.<number> number of votes for each cell
totalVotes number total number of votes
Source:

votesForGeomIntervals

Vote data for just one voter geometry in the form of 1D intervals.
Type:
  • object
Properties:
Name Type Description
rankings typesVoteArrays.rankings rankings for each interval
cansByRankList typesVoteArrays.cansByRankList cansByRank for each interval
voteCounts Array.<number> number of votes for each interval
totalVotes number total number of votes
intervalBorders Array.<number> midpoints and two infinity points
Source:

votesForGeomPlurality

Vote data for just one voter geometry in the form of 1D intervals.
Type:
  • object
Properties:
Name Type Description
countByCan Array.<number> The number of plurality votes for a candidate.
totalVotes number total number of votes
Source: