Package org.apache.spark.mllib.random
Interface RandomDataGenerator<T>
- All Superinterfaces:
Pseudorandom
,Serializable
,scala.Serializable
- All Known Implementing Classes:
ExponentialGenerator
,GammaGenerator
,LogNormalGenerator
,PoissonGenerator
,StandardNormalGenerator
,UniformGenerator
,WeibullGenerator
Trait for random data generators that generate i.i.d. data.
-
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.Returns an i.i.d. sample as a generic type from an underlying distribution.Methods inherited from interface org.apache.spark.util.random.Pseudorandom
setSeed
-
Method Details
-
copy
RandomDataGenerator<T> 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.- Returns:
- (undocumented)
-
nextValue
T nextValue()Returns an i.i.d. sample as a generic type from an underlying distribution.- Returns:
- (undocumented)
-