Package org.apache.spark.mllib.random
Class WeibullGenerator
Object
org.apache.spark.mllib.random.WeibullGenerator
- All Implemented Interfaces:
 Serializable,RandomDataGenerator<Object>,Pseudorandom
Generates i.i.d. samples from the Weibull distribution with the
 given shape and scale parameter.
 
param: alpha shape parameter for the Weibull distribution. param: beta scale parameter for the Weibull distribution.
- See Also:
 
- 
Constructor Summary
Constructors - 
Method Summary
 
- 
Constructor Details
- 
WeibullGenerator
public WeibullGenerator(double alpha, double beta)  
 - 
 - 
Method Details
- 
alpha
public double alpha() - 
beta
public double beta() - 
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)
 
 - 
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
 
 -