|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.apache.spark.mllib.random.GammaGenerator
public class GammaGenerator
:: DeveloperApi :: Generates i.i.d. samples from the gamma distribution with the given shape and scale.
param: shape shape for the gamma distribution. param: scale scale for the gamma distribution
Constructor Summary | |
---|---|
GammaGenerator(double shape,
double scale)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GammaGenerator(double shape, double scale)
Method Detail |
---|
public double shape()
public double scale()
public double nextValue()
RandomDataGenerator
nextValue
in interface RandomDataGenerator<Object>
public void setSeed(long seed)
Pseudorandom
setSeed
in interface Pseudorandom
public GammaGenerator copy()
RandomDataGenerator
copy
in interface RandomDataGenerator<Object>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |