Normal extends AbstractContinousDistribution { @Override public String toString() { return String.format(Locale.ENGLISH, "%s(m=%f, sd=%f)", this.getClass().getName(), mean, standardDeviation); } Normal(double mean, double standardDeviation, Random randomGenerator); @Override double cdf(double x); @Override double pdf(double x); @Override double nextDouble(); @Override final void setRandomGenerator(Random randomGenerator); final void setState(double mean, double standardDeviation); @Override String toString();  }
@Test public void testToString() { assertEquals("org.apache.mahout.math.jet.random.Normal(m=1.300000, sd=5.900000)", new Normal(1.3, 5.9, null).toString()); }