Class Urns

  extended byExamples.Probability.Urns

public class Urns
extends java.lang.Object

Two urns are filled with 100 white respectively 200 black balls. * The following operation is performed 1000 times: a ball is selected at * random from both urns and the balls exchanged. We expect white and black * balls to be mixed in proportion 1:2 in both urns after 1000 exchanges * (equilibrium distribution).

* * The main method of this class is a console program checking this * fact by allocating the process both as a MarkovChain * and as an SFSMarkovChain. Both computations generate the same * number of sample paths and are timed to get an idea how much faster an * SFSMarkovChain generates samples.

* *

All parameters fixed in source code. No user interaction. See book, * chapter 2, example 2.

* * @author Michael J. Meyer

Constructor Summary
Method Summary
static void main(java.lang.String[] args)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Urns()
Method Detail


public static void main(java.lang.String[] args)