return "new Double[] { " + gd.getMean() + ", " + gd.getVariance() + " }";
} else if ( d instanceof PoissonDistribution ) {
PoissonDistribution pd = (PoissonDistribution) d;
return "new Double[] { " + pd.getMean() + " }";
} else if ( d instanceof UniformDistribution ) {
UniformDistribution ud = (UniformDistribution) d;
return "new Double[] { " + ud.getLower() + ", " + ud.getUpper() + " }";
} else if ( d instanceof AnyDistribution ) {
AnyDistribution ad = (AnyDistribution) d;
return "new Double[] { " + ad.getMean() + ", " + ad.getVariance() + " }";
}
throw new IllegalStateException( "Unrecognized Distribution type " + d.getClass().getName() );