public abstract class AbstractDistribution extends DoubleFunction implements IntFunction
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDistribution()
Makes this class non instantiable, but still let's others inherit from it.
|
| Modifier and Type | Method and Description |
|---|---|
double |
apply(double dummy)
Equivalent to nextDouble().
|
int |
apply(int dummy)
Equivalent to nextInt().
|
protected Random |
getRandomGenerator() |
abstract double |
nextDouble()
Returns a random number from the distribution.
|
abstract int |
nextInt() |
protected double |
randomDouble() |
void |
setRandomGenerator(Random randomGenerator)
Sets the uniform random generator internally used.
|
isDensifyingprotected AbstractDistribution()
protected Random getRandomGenerator()
protected double randomDouble()
public double apply(double dummy)
apply in class DoubleFunctiondummy - double for the argumentpublic int apply(int dummy)
apply in interface IntFunctiondummy - argument passed to the function.public abstract double nextDouble()
public abstract int nextInt()
public void setRandomGenerator(Random randomGenerator)
randomGenerator - the new PRNGCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.