public class KeanuRandom
extends java.lang.Object
Constructor and Description |
---|
KeanuRandom() |
KeanuRandom(long seed) |
Modifier and Type | Method and Description |
---|---|
static KeanuRandom |
getDefaultRandom() |
boolean |
nextBoolean() |
double |
nextDouble() |
double |
nextDouble(double min,
double max) |
DoubleTensor |
nextDouble(int[] shape) |
DoubleTensor |
nextGamma(int[] shape,
DoubleTensor theta,
DoubleTensor k) |
double |
nextGaussian() |
double |
nextGaussian(double mu,
double sigma) |
DoubleTensor |
nextGaussian(int[] shape) |
int |
nextInt(int maxExclusive) |
IntegerTensor |
nextInt(int[] shape) |
DoubleTensor |
nextLaplace(int[] shape,
DoubleTensor mu,
DoubleTensor beta) |
IntegerTensor |
nextPoisson(int[] shape,
DoubleTensor mu) |
static void |
setDefaultRandomSeed(long seed) |
public static KeanuRandom getDefaultRandom()
public static void setDefaultRandomSeed(long seed)
public DoubleTensor nextDouble(int[] shape)
public double nextDouble()
public double nextDouble(double min, double max)
public DoubleTensor nextGaussian(int[] shape)
public DoubleTensor nextGamma(int[] shape, DoubleTensor theta, DoubleTensor k)
public DoubleTensor nextLaplace(int[] shape, DoubleTensor mu, DoubleTensor beta)
public double nextGaussian()
public double nextGaussian(double mu, double sigma)
public boolean nextBoolean()
public IntegerTensor nextInt(int[] shape)
public IntegerTensor nextPoisson(int[] shape, DoubleTensor mu)
public int nextInt(int maxExclusive)