Package org.apache.sysds.runtime.util
Class RandNPair
- java.lang.Object
- 
- org.apache.sysds.runtime.util.RandNPair
 
- 
 public class RandNPair extends Object Class that generates a pair of random numbers from standard normal distribution N(0,1). Box-Muller method is used to compute random numbers from N(0,1) using two independent random numbers from U[0,1).
- 
- 
Constructor SummaryConstructors Constructor Description RandNPair()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute(double U1, double U2)voidcompute(Random r)doublegetFirst()doublegetSecond()
 
- 
- 
- 
Method Detail- 
getFirstpublic double getFirst() 
 - 
getSecondpublic double getSecond() 
 - 
computepublic void compute(double U1, double U2)
 - 
computepublic void compute(Random r) 
 
- 
 
-