BanditFactory bf = new BetaBayesFactory();
if (args.length > 3) {
if (args[3].startsWith("beta")) {
bf = new BetaBayesFactory();
} else if (args[3].startsWith("gamma")) {
bf = new GammaNormalBayesFactory();
} else {
throw new IllegalArgumentException("Wanted beta or gamma to specify distribution");
}
}