@Test public void consistency() { Exponential dist = new Exponential(1, RandomUtils.getRandom()); double[] breaks = {0.1053605, 0.2231436, 0.3566749, 0.5108256, 0.6931472, 0.9162907, 1.2039728, 1.6094379, 2.3025851}; for (double lambda : new double[]{0.01, 0.1, 1, 2, 5, 100}) { dist.setState(lambda); DistributionChecks.checkDistribution(dist, breaks, 0, 1 / lambda, 10000); } }
public void setState(double lambda) { this.lambda = lambda; }
Exponential extends AbstractContinousDistribution { public void setState(double lambda) { this.lambda = lambda; } }
Exponential extends AbstractContinousDistribution { public void setState(double lambda) { this.lambda = lambda; } Exponential(double lambda, Random randomGenerator); }
Exponential extends AbstractContinousDistribution { public void setState(double lambda) { this.lambda = lambda; } Exponential(double lambda, Random randomGenerator); @Override double cdf(double x); @Override double nextDouble(); @Override double pdf(double x); void setState(double lambda); @Override String toString(); }
Exponential extends AbstractContinousDistribution { public void setState(double lambda) { this.lambda = lambda; } Exponential(double lambda, Random randomGenerator); @Override double cdf(double x); @Override double nextDouble(); @Override double pdf(double x); void setState(double lambda); @Override String toString();  }