Package org.apache.sysds.runtime.util
Class NormalPRNGenerator
java.lang.Object
org.apache.sysds.runtime.util.PRNGenerator
org.apache.sysds.runtime.util.NormalPRNGenerator
- All Implemented Interfaces:
IPRNGenerator
Class that can generate a stream of random numbers from standard
normal distribution N(0,1). This class internally makes use of
RandNPair, which uses Box-Muller method.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NormalPRNGenerator
public NormalPRNGenerator()
-
-
Method Details
-
setSeed
public void setSeed(long seed) - Specified by:
setSeedin interfaceIPRNGenerator- Specified by:
setSeedin classPRNGenerator
-
nextDouble
public double nextDouble()- Specified by:
nextDoublein classPRNGenerator
-