org.encog.mathutil.randomize
public class FanInRandomizer extends BasicRandomizer
Constructor and Description |
---|
FanInRandomizer()
Create a fan-in randomizer with default values.
|
FanInRandomizer(double boundary,
boolean sqrt)
Construct a fan-in randomizer along the specified boundary.
|
FanInRandomizer(double aLowerBound,
double anUpperBound,
boolean sqrt)
Construct a fan-in randomizer.
|
Modifier and Type | Method and Description |
---|---|
void |
randomize(BasicNetwork network,
int fromLayer)
Randomize one level of a neural network.
|
double |
randomize(double d)
Starting with the specified number, randomize it to the degree specified
by this randomizer.
|
void |
randomize(double[] d)
Randomize the array based on an array, modify the array.
|
void |
randomize(double[][] d)
Randomize the 2d array based on an array, modify the array.
|
void |
randomize(Matrix m)
Randomize the matrix based on an array, modify the array.
|
getRandom, nextDouble, nextDouble, randomize, randomize, setRandom
public FanInRandomizer()
public FanInRandomizer(double boundary, boolean sqrt)
boundary
- The boundary for the fan-in.sqrt
- Should the square root of the rows to be used in the
calculation.public FanInRandomizer(double aLowerBound, double anUpperBound, boolean sqrt)
aLowerBound
- The lower bound.anUpperBound
- The upper bound.sqrt
- True if the square root of the rows should be used in the
calculation.public double randomize(double d)
d
- The number to randomize.public void randomize(double[] d)
randomize
in interface Randomizer
randomize
in class BasicRandomizer
d
- An array to randomize.public void randomize(double[][] d)
randomize
in interface Randomizer
randomize
in class BasicRandomizer
d
- An array to randomize.public void randomize(Matrix m)
randomize
in interface Randomizer
randomize
in class BasicRandomizer
m
- A matrix to randomize.public void randomize(BasicNetwork network, int fromLayer)
randomize
in class BasicRandomizer
network
- The network to randomizefromLayer
- The from level to randomize.Copyright © 2014. All Rights Reserved.