This class is a simple model of the classical Galton board. A ball falls through a triangular array of pegs. At each peg, the ball may bounce to the right or to the left. The class has methods for getting and setting the colors, the number of rows, and the probability of a bounce to the right. The class has methods for moving the ball, for specifying the entire path, and for getting the bit string and subset corresponding to the path. This object is used, for example, in the Galton board experiment
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.