public abstract class AbstractDiscreteDistribution extends AbstractDistribution
randomGeneratorserialVersionUID| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDiscreteDistribution()
Makes this class non instantiable, but still let's others inherit from it.
|
| Modifier and Type | Method and Description |
|---|---|
double |
nextDouble()
Returns a random number from the distribution; returns (double) nextInt().
|
abstract int |
nextInt()
Returns a random number from the distribution.
|
apply, apply, clone, getRandomGenerator, makeDefaultGenerator, setRandomGeneratorprotected AbstractDiscreteDistribution()
public double nextDouble()
nextDouble in class AbstractDistributionpublic abstract int nextInt()
nextInt in class AbstractDistributionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.