public class Distributions extends Object
Constructor and Description |
---|
Distributions() |
Modifier and Type | Method and Description |
---|---|
static org.apache.commons.math3.distribution.RealDistribution |
normal(org.apache.commons.math3.random.RandomGenerator rng,
double std)
Returns a normal distribution
with a mean of 0 and a standard deviation of 1
|
static org.apache.commons.math3.distribution.RealDistribution |
uniform(org.apache.commons.math3.random.RandomGenerator rng)
Returns a uniform distribution with a
min of -fanIn and a max of positivefanIn
|
static org.apache.commons.math3.distribution.RealDistribution |
uniform(org.apache.commons.math3.random.RandomGenerator rng,
double fanIn)
Returns a uniform distribution with a
min of -fanIn and a max of positivefanIn
|
static org.apache.commons.math3.distribution.RealDistribution |
uniform(org.apache.commons.math3.random.RandomGenerator rng,
int nIn,
int nOut)
Returns a uniform distribution
based on the number of ins and outs
|
public static org.apache.commons.math3.distribution.RealDistribution normal(org.apache.commons.math3.random.RandomGenerator rng, double std)
rng
- the rng to usestd
- the standard deviation to usepublic static org.apache.commons.math3.distribution.RealDistribution uniform(org.apache.commons.math3.random.RandomGenerator rng, double fanIn)
rng
- the rng to usefanIn
- the fanin to usepublic static org.apache.commons.math3.distribution.RealDistribution uniform(org.apache.commons.math3.random.RandomGenerator rng, int nIn, int nOut)
rng
- the rng to usenIn
- the number of inputsnOut
- the number of outputspublic static org.apache.commons.math3.distribution.RealDistribution uniform(org.apache.commons.math3.random.RandomGenerator rng)
rng
- the rng to usefanIn
- the fanin to useCopyright © 2014. All Rights Reserved.