Type Definitions
grid1D
data for points on a 1D grid
Type:
Properties:
Name |
Type |
Description |
x |
Array.<number>
|
x coordinates for grid points |
density |
Array.<number>
|
density for grid points |
voterPoints |
Array.<typesPoints.point1D>
|
grid points in point1D format |
voteCounts |
Array.<number>
|
voteCount for each grid point |
totalVotes |
number
|
total number of votes |
voterGeom |
typesGeoms.voterGeom1D
|
the geometry of a voter distribution in 1D |
- Source:
grid2D
data for points on a 2D grid
Type:
Properties:
Name |
Type |
Description |
x |
Array.<number>
|
x coordinates for grid points |
y |
Array.<number>
|
y coordinates for grid points |
density |
Array.<number>
|
density for grid points |
voteCounts |
Array.<number>
|
voteCount for each grid point |
totalVotes |
number
|
total number of votes |
nx |
number
|
number of x coordinates |
ny |
number
|
number of y coordinates |
width |
number
|
width and height of grid in pixels. grid is square. |
voterPoints |
Array.<typesPoints.point2D>
|
grid points in point2D format |
voterGeom |
typesGeoms.voterGeom2D
|
the geometry of a voter distribution in 2D |
- Source:
gridX
Type:
Properties:
Name |
Type |
Description |
gridX |
Array.<number>
|
x coordinates for grid points |
voterPoints |
Array.<typesPoints.point1D>
|
grid points in point1D format |
gridPointLength |
number
|
size of grid point's region in policy space. density * length = count. |
- Source: