Namespace: typesGeoms

typesGeoms

Type Definitions

canPoint1D

the point where a candidate sits in 1D - x position
Type:
  • number
Source:

canPoint2D

the point where a candidate sits in 2D- [x,y] position
Type:
  • Array.<number>
Source:

canPoints

geometries for a number of candidates. For 2D, an array of objects: {x,y}. For 1D, an array of objects: {x}.
Type:
  • Array.<canPoint1D> | Array.<canPoint2D>
Source:

voterGeom

geometries for a number of voters
Type:
  • voterGeom1D | voterGeom2D
Source:

voterGeom1D

the geometry of a voter distribution in 1D
Type:
  • object
Properties:
Name Type Description
x number x position
w number width
densityProfile String how voters are spread in policy space
Source:

voterGeom2D

the geometry of a voter distribution in 2D
Type:
  • object
Properties:
Name Type Description
x number x position
y number y position
w number width
densityProfile String how voters are spread in policy space
Source:

voterGeoms

geometries for a number of voters
Type:
  • Array.<voterGeom1D> | Array.<voterGeom2D>
Source: