org.apache.spark.mllib.random
Class StandardNormalGenerator

Object
  extended by org.apache.spark.mllib.random.StandardNormalGenerator
All Implemented Interfaces:
java.io.Serializable, RandomDataGenerator<Object>, Pseudorandom

public class StandardNormalGenerator
extends Object
implements RandomDataGenerator<Object>

:: DeveloperApi :: Generates i.i.d. samples from the standard normal distribution.

See Also:
Serialized Form

Constructor Summary
StandardNormalGenerator()
           
 
Method Summary
 StandardNormalGenerator 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 nextValue()
          Returns an i.i.d.
 void setSeed(long seed)
          Set random seed.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardNormalGenerator

public StandardNormalGenerator()
Method Detail

nextValue

public double nextValue()
Description copied from interface: RandomDataGenerator
Returns an i.i.d. sample as a generic type from an underlying distribution.

Specified by:
nextValue in interface RandomDataGenerator<Object>
Returns:
(undocumented)

setSeed

public void setSeed(long seed)
Description copied from interface: Pseudorandom
Set random seed.

Specified by:
setSeed in interface Pseudorandom

copy

public StandardNormalGenerator copy()
Description copied from interface: RandomDataGenerator
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.

Specified by:
copy in interface RandomDataGenerator<Object>
Returns:
(undocumented)