public class RandomUtil extends Object
| 构造器 | 说明 |
|---|---|
RandomUtil() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static double |
poisson(double mean) |
Get random data from a Poisson distribution
|
static ucar.ma2.Array |
poisson(double mean,
int n) |
Get random data from a Poisson distribution
|
static ucar.ma2.Array |
poisson(double mean,
List<Integer> shape) |
Get random data from a Poisson distribution
|
static double |
rand() |
Get random value
|
static ucar.ma2.Array |
rand(int n) |
Get random array - one dimension
|
static ucar.ma2.Array |
rand(List<Integer> shape) |
Get random array
|
static int |
randint(int bound) |
Get random int value
|
static ucar.ma2.Array |
randint(int bound,
int n) |
Get random integer array
|
static ucar.ma2.Array |
randint(int bound,
List<Integer> shape) |
Get random integer array
|
static double |
randn() |
Get random value
|
static ucar.ma2.Array |
randn(int n) |
Get random array - one dimension
|
static ucar.ma2.Array |
randn(List<Integer> shape) |
Get random array
|
public static double rand()
public static ucar.ma2.Array rand(int n)
n - Array lengthpublic static ucar.ma2.Array rand(List<Integer> shape)
shape - Shapepublic static double randn()
public static ucar.ma2.Array randn(int n)
n - Array lengthpublic static ucar.ma2.Array randn(List<Integer> shape)
shape - Shapepublic static int randint(int bound)
bound - Highest valuepublic static ucar.ma2.Array randint(int bound,
int n)
bound - Highest valuen - Array lengthpublic static ucar.ma2.Array randint(int bound,
List<Integer> shape)
bound - Highest valueshape - Shapepublic static double poisson(double mean)
mean - Poisson meanpublic static ucar.ma2.Array poisson(double mean,
int n)
mean - Poisson meann - Array lengthCopyright © 2019. All rights reserved.