Package org.apache.spark.mllib.random
Class StandardNormalGenerator
Object
org.apache.spark.mllib.random.StandardNormalGenerator
- All Implemented Interfaces:
Serializable
,RandomDataGenerator<Object>
,Pseudorandom
Generates i.i.d. samples from the standard normal distribution.
- See Also:
-
Constructor Details
-
StandardNormalGenerator
public StandardNormalGenerator()
-
-
Method Details
-
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 interfaceRandomDataGenerator<Object>
- Returns:
- (undocumented)
-
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 interfaceRandomDataGenerator<Object>
- Returns:
- (undocumented)
-
setSeed
public void setSeed(long seed) Description copied from interface:Pseudorandom
Set random seed.- Specified by:
setSeed
in interfacePseudorandom
-