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(long[] shape) |
double |
nextDoubleNonZero() |
DoubleTensor |
nextGamma(long[] shape,
DoubleTensor theta,
DoubleTensor k) |
double |
nextGaussian() |
double |
nextGaussian(double mu,
double sigma) |
DoubleTensor |
nextGaussian(long[] shape) |
DoubleTensor |
nextGaussian(long[] shape,
DoubleTensor mu,
DoubleTensor sigma) |
int |
nextInt() |
int |
nextInt(int maxExclusive) |
IntegerTensor |
nextInt(long[] shape) |
DoubleTensor |
nextLaplace(long[] shape,
DoubleTensor mu,
DoubleTensor beta) |
IntegerTensor |
nextPoisson(long[] shape,
DoubleTensor mu) |
static void |
setDefaultRandomSeed(long seed) |
public static KeanuRandom getDefaultRandom()
public static void setDefaultRandomSeed(long seed)
public DoubleTensor nextDouble(long[] shape)
public double nextDouble()
public double nextDouble(double min, double max)
public double nextDoubleNonZero()
public DoubleTensor nextGaussian(long[] shape)
public DoubleTensor nextGaussian(long[] shape, DoubleTensor mu, DoubleTensor sigma)
public DoubleTensor nextGamma(long[] shape, DoubleTensor theta, DoubleTensor k)
public DoubleTensor nextLaplace(long[] shape, DoubleTensor mu, DoubleTensor beta)
public double nextGaussian()
public double nextGaussian(double mu, double sigma)
public boolean nextBoolean()
public IntegerTensor nextInt(long[] shape)
public IntegerTensor nextPoisson(long[] shape, DoubleTensor mu)
public int nextInt(int maxExclusive)
public int nextInt()