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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
StandardNormalGeneratorpublic StandardNormalGenerator()
 
- 
- 
Method Details- 
copyDescription 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 interface- RandomDataGenerator<Object>
- Returns:
- (undocumented)
 
- 
nextValuepublic double nextValue()Description copied from interface:RandomDataGeneratorReturns an i.i.d. sample as a generic type from an underlying distribution.- Specified by:
- nextValuein interface- RandomDataGenerator<Object>
- Returns:
- (undocumented)
 
- 
setSeedpublic void setSeed(long seed) Description copied from interface:PseudorandomSet random seed.- Specified by:
- setSeedin interface- Pseudorandom
 
 
-