public static class SpikeDistribution.SimpleSpikeDistribution extends IDistribution.SimpleDistribution implements IDistribution
[-1,1) to [0,1). It is a
IDistribution.SimpleDistribution, and the spike is centered on 0.5.IDistribution.SimpleDistributionEXCLUSIVE_ONE, EXCLUSIVE_ZERO| Constructor and Description |
|---|
SimpleSpikeDistribution() |
| 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 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.