/**
* Sanity check values
*/
public void testLogNormal() {
LogNormalDistribution d = new LogNormalDistribution();
int median = 10;
d.init(0, 100, median, 1);
// CDF of median should be 0.5 by def.
assertEquals(0.5, d.cdf(median), 0.01);
// Precomputed points
d.init(0, 1000, 100, 1);
assertEquals(0.033434, d.cdf(16), 0.0001);
assertEquals(0.327695, d.cdf(64), 0.0001);
assertEquals(0.597491, d.cdf(128), 0.0001);
assertEquals(0.94878, d.cdf(512), 0.0001);
}