public abstract class AbstractDiscreteDistribution extends AbstractDistribution
randomGenerator
serialVersionUID
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, setRandomGenerator
protected AbstractDiscreteDistribution()
public double nextDouble()
nextDouble
in class AbstractDistribution
public abstract int nextInt()
nextInt
in class AbstractDistribution
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.