User:Lucasvb/An upgrade to the spatial model of voters: Difference between revisions

Line 187:
 
== Implementation ==
 
In practice, it's up to us to determine how sharply-peaked the distributions can get.
 
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.
 
AsUnder this setup, the sharped distribution is 1 bin wide. So as a first approximation, it is helpful to model the distribution as a simple trapezoidal distribution, instead of a normal distribution.
 
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>.
295

edits