Modifier and Type | Class and Description |
---|---|
class |
DefaultRandom
Apache commons based random number generation
|
Modifier and Type | Field and Description |
---|---|
protected Random |
BaseDistribution.random |
Constructor and Description |
---|
BaseDistribution(Random rng) |
Constructor and Description |
---|
BinomialDistribution(Random rng,
int trials,
double p)
Creates a binomial distribution.
|
NormalDistribution(Random rng,
double mean,
double sd,
double inverseCumAccuracy)
Creates a normal distribution.
|
NormalDistribution(Random rng,
double standardDeviation,
INDArray means) |
UniformDistribution(Random rng,
double lower,
double upper)
Creates a uniform distribution.
|
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.sample(int numSamples,
Random rng)
Sample without replacement
|
DataSet |
DataSet.sample(int numSamples,
Random rng,
boolean withReplacement)
Sample a dataset
|
Modifier and Type | Method and Description |
---|---|
DataSet |
DataSet.sample(int numSamples,
Random rng) |
DataSet |
DataSet.sample(int numSamples,
Random rng,
boolean withReplacement) |
Modifier and Type | Field and Description |
---|---|
protected static Random |
Nd4j.random |
Modifier and Type | Field and Description |
---|---|
protected static Class<? extends Random> |
Nd4j.randomClazz |
Modifier and Type | Method and Description |
---|---|
static Random |
Nd4j.getRandom()
Get the current random generator
|
Modifier and Type | Method and Description |
---|---|
INDArray |
BaseNDArrayFactory.rand(int[] shape,
double min,
double max,
Random rng) |
static INDArray |
Nd4j.rand(int[] shape,
double min,
double max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(int[] shape,
double min,
double max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(int[] shape,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(int[] shape,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
BaseNDArrayFactory.rand(int[] shape,
Random r)
Create a random ndarray with the given shape using the given rng
|
static INDArray |
Nd4j.rand(int[] shape,
Random rng)
Create a random ndarray with the given shape using the given RandomGenerator
|
INDArray |
NDArrayFactory.rand(int[] shape,
Random r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
BaseNDArrayFactory.rand(int rows,
int columns,
double min,
double max,
Random rng) |
static INDArray |
Nd4j.rand(int rows,
int columns,
double min,
double max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(int rows,
int columns,
double min,
double max,
Random rng) |
INDArray |
BaseNDArrayFactory.rand(int rows,
int columns,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
NDArrayFactory.rand(int rows,
int columns,
float min,
float max,
Random rng)
Generates a random matrix between min and max
|
INDArray |
BaseNDArrayFactory.rand(int rows,
int columns,
Random r)
Create a random ndarray with the given shape using the given rng
|
static INDArray |
Nd4j.rand(int rows,
int columns,
Random rng)
Deprecated.
|
INDArray |
NDArrayFactory.rand(int rows,
int columns,
Random r)
Create a random ndarray with the given shape using the given rng
|
INDArray |
BaseNDArrayFactory.randn(int[] shape,
Random r)
Random normal using the given rng
|
static INDArray |
Nd4j.randn(int[] shape,
Random r)
Random normal using the given rng
|
INDArray |
NDArrayFactory.randn(int[] shape,
Random r)
Random normal using the given rng
|
INDArray |
BaseNDArrayFactory.randn(int rows,
int columns,
Random r)
Random normal using the given rng
|
static INDArray |
Nd4j.randn(int rows,
int columns,
Random r)
Random normal using the given rng
|
INDArray |
NDArrayFactory.randn(int rows,
int columns,
Random r)
Random normal using the given rng
|
Copyright © 2015. All Rights Reserved.