Package org.apache.spark.mllib.random
Class ExponentialGenerator
Object
org.apache.spark.mllib.random.ExponentialGenerator
- All Implemented Interfaces:
 Serializable,RandomDataGenerator<Object>,Pseudorandom,scala.Serializable
Generates i.i.d. samples from the exponential distribution with the given mean.
 
param: mean mean for the exponential distribution.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptioncopy()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.doublemean()doubleReturns an i.i.d. sample as a generic type from an underlying distribution.voidsetSeed(long seed) Set random seed. 
- 
Constructor Details
- 
ExponentialGenerator
public ExponentialGenerator(double mean)  
 - 
 - 
Method Details
- 
copy
Description copied from interface:RandomDataGeneratorReturns a copy of the RandomDataGenerator with a new instance of the rng object used in the class when applicable for non-locking concurrent usage.- Specified by:
 copyin interfaceRandomDataGenerator<Object>- Returns:
 - (undocumented)
 
 - 
mean
public double mean() - 
nextValue
public double nextValue()Description copied from interface:RandomDataGeneratorReturns an i.i.d. sample as a generic type from an underlying distribution.- Specified by:
 nextValuein interfaceRandomDataGenerator<Object>- Returns:
 - (undocumented)
 
 - 
setSeed
public void setSeed(long seed) Description copied from interface:PseudorandomSet random seed.- Specified by:
 setSeedin interfacePseudorandom
 
 -