| Constructor and Description |
|---|
Random() |
| Modifier and Type | Method and Description |
|---|---|
static DoubleDataset |
exponential(double beta,
int... shape) |
static ILazyDataset |
lazyRand(int... shape) |
static ILazyDataset |
lazyRand(int dtype,
String name,
int... shape)
Deprecated.
|
static ILazyDataset |
lazyRand(String name,
Class<? extends Dataset> clazz,
int... shape) |
static ILazyDataset |
lazyRand(String name,
int... shape) |
static IntegerDataset |
poisson(double lam,
int... shape) |
static DoubleDataset |
rand(double low,
double high,
int... shape) |
static DoubleDataset |
rand(int... shape) |
static IntegerDataset |
randint(int low,
int high,
int[] shape) |
static DoubleDataset |
randn(double mean,
double std,
int... shape) |
static DoubleDataset |
randn(int... shape) |
static IntegerDataset |
random_integers(int low,
int high,
int[] shape) |
static void |
seed(int seed) |
static void |
seed(int[] seed) |
static void |
seed(long seed) |
public Random()
public static void seed(int seed)
seed - value for generatorpublic static void seed(int[] seed)
seed - values for generatorpublic static void seed(long seed)
seed - value for generatorpublic static DoubleDataset rand(int... shape)
shape - output shapepublic static DoubleDataset rand(double low, double high, int... shape)
low - lower exclusive boundhigh - upper exclusive boundshape - output shapepublic static DoubleDataset randn(int... shape)
shape - output shapepublic static DoubleDataset randn(double mean, double std, int... shape)
mean - mean of distributionstd - standard deviationshape - output shapepublic static IntegerDataset randint(int low, int high, int[] shape)
low - lower inclusive boundhigh - upper exclusive boundshape - output shapepublic static IntegerDataset random_integers(int low, int high, int[] shape)
low - lower inclusive boundhigh - upper inclusive boundshape - output shapepublic static DoubleDataset exponential(double beta, int... shape)
beta - meanshape - output shapepublic static IntegerDataset poisson(double lam, int... shape)
lam - Poisson parametershape - output shapepublic static ILazyDataset lazyRand(int... shape)
shape - output shapepublic static ILazyDataset lazyRand(String name, int... shape)
name - dataset nameshape - output shape@Deprecated public static ILazyDataset lazyRand(int dtype, String name, int... shape)
lazyRand(String, Class, int...)dtype - dataset typename - dataset nameshape - output shapepublic static ILazyDataset lazyRand(String name, Class<? extends Dataset> clazz, int... shape)
name - dataset nameclazz - dataset sub-interfaceshape - output shapeCopyright © 2014–2022 Eclipse Foundation. All rights reserved.