// and precision 2 on its value. Each alternative has a
// sampling precision of 0.5.
Belief prior = new Belief(5,0,2,0.5);
// Use knowledge gradient for our sampling allocation rule.
SamplingRule alloc = new KG(prior);
// Use a fixed stopping rule, that stops after 20 measurements.
// More sophisticated stopping rules may also be used.
// A simulation sampling rule is a combination of allocation
// and stopping rule.