This class shows the graph of the random walk in the ballot experiment. In an election, the winner has a votes and the loser b votes. The graph shows the difference between the number of votes for the winner and the number of votes for the loser, as the votes are counted. The event of interest is that the winner is never behind in the count; that is, the graph never crosses the horizontal axis. The class has methods for getting and setting the parameters, for counting the votes and, and for determining the ballot event.
The text area below gives the code for this object, so that you can browse the constructors, methods, and properties of the object. Of course, this source file is part of devices.zip, which contains all source and resource files for the objects in the devices package.