User:Lucasvb/An upgrade to the spatial model of voters: Difference between revisions
User:Lucasvb/An upgrade to the spatial model of voters (view source)
Revision as of 18:15, 7 March 2020
, 4 years ago→Implementation
Line 192:
The earth-mover's distance is simple and efficient to compute in a discrete 1D case, where the distribution is defined in a number of bins. This makes it readily available in many software packages.
Under this setup, the
In my simulations, I've defined an integer parameter <tt>L</tt>, the resolution of one side of the belief axis. In order to make 0 a valid belief, it is best to use an odd number of bins, so the total number of bins is given by <tt>W = 2*L+1</tt>.
|