public class BathtubDistribution extends IDistribution.SimpleDistribution implements IDistribution
IDistribution.SimpleDistribution| Modifier and Type | Field and Description |
|---|---|
static BathtubDistribution |
instance |
EXCLUSIVE_ONE, EXCLUSIVE_ZERO| Constructor and Description |
|---|
BathtubDistribution() |
| Modifier and Type | Method and Description |
|---|---|
double |
getMean()
Gets the mean value of this distribution (0.5).
|
double |
nextDouble(IRNG rng)
Gets a double between
IDistribution.SimpleDistribution.getLowerBound() and IDistribution.SimpleDistribution.getUpperBound() that obeys this distribution. |
clampedDistribution, fractionalDistribution, fractionalOffsetDistribution, getLowerBound, getUpperBoundclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLowerBound, getUpperBoundpublic static final BathtubDistribution instance
public double nextDouble(IRNG rng)
IDistribution.SimpleDistribution.getLowerBound() and IDistribution.SimpleDistribution.getUpperBound() that obeys this distribution.nextDouble in interface IDistributionrng - an IRNG, such as RNG or GWTRNG, that this will get one or more random numbers fromIDistribution.SimpleDistribution.getLowerBound() and IDistribution.SimpleDistribution.getUpperBound()public double getMean()
getMean in interface IDistributiongetMean in class IDistribution.SimpleDistributionCopyright © Eben Howard 2012–2022. All rights reserved.