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