}
}
public void test() {
BinomialDistribution bn = new BinomialDistribution(120, 0.5);
NormalDistribution n = new NormalDistribution(60, Math.sqrt(30));
PVector param_norm = new PVector(2);
param_norm.array[0] = 60; // mean
param_norm.array[1] = 30; // var
PVector param_bino = new PVector(2);
param_bino.array[0] = 120; // n
param_bino.array[1] = 0.5; // p
ExponentialFamily normal = new UnivariateGaussian();
PVector p = new PVector(1);
p.array[0] = 32;
System.out.println(bn.cumulativeProbability(32));
System.out.println(n.cumulativeProbability(32));
System.out.println(normal.density(p, param_norm));
p.array[0] = 27;
System.out.println(bn.cumulativeProbability(27));
System.out.println(n.cumulativeProbability(27));
System.out.println(n.density(27));
System.out.println(normal.density(p, param_norm));
p.array[0] = 60;
System.out.println(bn.cumulativeProbability(60));
System.out.println(n.cumulativeProbability(60));
System.out.println(n.density(60));
System.out.println(normal.density(p, param_norm));
}