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