Package org.apache.sysds.runtime.util
Class PhiloxNormalCBPRNGenerator
java.lang.Object
org.apache.sysds.runtime.util.CounterBasedPRNGenerator
org.apache.sysds.runtime.util.PhiloxNormalCBPRNGenerator
- All Implemented Interfaces:
IPRNGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[]getDoubles(long[] ctr, int size) Generate a sequence of random doubles using the Philox4x64 counter-based PRNG.voidsetSeed(long sd)
-
Constructor Details
-
PhiloxNormalCBPRNGenerator
public PhiloxNormalCBPRNGenerator()
-
-
Method Details
-
setSeed
public void setSeed(long sd) - Specified by:
setSeedin interfaceIPRNGenerator- Specified by:
setSeedin classCounterBasedPRNGenerator
-
getDoubles
public double[] getDoubles(long[] ctr, int size) Generate a sequence of random doubles using the Philox4x64 counter-based PRNG.- Specified by:
getDoublesin classCounterBasedPRNGenerator- Parameters:
ctr- The start counter to use for the PRNGsize- The number of doubles to generate- Returns:
- An array of random doubles distributed normally with mean 0 and variance 1
-