org.apache.spark.mllib.random
Interface RandomDataGenerator<T>

All Superinterfaces:
Pseudorandom, java.io.Serializable
All Known Implementing Classes:
ExponentialGenerator, GammaGenerator, LogNormalGenerator, PoissonGenerator, StandardNormalGenerator, UniformGenerator

public interface RandomDataGenerator<T>
extends Pseudorandom, scala.Serializable

:: DeveloperApi :: Trait for random data generators that generate i.i.d. data.


Method Summary
 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.
 T nextValue()
          Returns an i.i.d.
 
Methods inherited from interface org.apache.spark.util.random.Pseudorandom
setSeed
 

Method Detail

nextValue

T nextValue()
Returns an i.i.d. sample as a generic type from an underlying distribution.

Returns:
(undocumented)

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)