public class GammaGenerator extends Object implements RandomDataGenerator<Object>
param: shape shape for the gamma distribution. param: scale scale for the gamma distribution
| Constructor and Description |
|---|
GammaGenerator(double shape,
double scale) |
| Modifier and Type | Method and Description |
|---|---|
GammaGenerator |
copy()
Returns a copy of the RandomDataGenerator with a new instance of the rng object used in the
class when applicable for non-locking concurrent usage.
|
double |
nextValue()
Returns an i.i.d.
|
double |
scale() |
void |
setSeed(long seed)
Set random seed.
|
double |
shape() |
public double shape()
public double scale()
public double nextValue()
RandomDataGeneratornextValue in interface RandomDataGenerator<Object>public void setSeed(long seed)
PseudorandomsetSeed in interface Pseudorandompublic GammaGenerator copy()
RandomDataGeneratorcopy in interface RandomDataGenerator<Object>