|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.mathutil.randomize.BasicRandomizer
public abstract class BasicRandomizer
Provides basic functionality that most randomizers will need.
| Constructor Summary | |
|---|---|
BasicRandomizer()
Construct a random number generator with a random(current time) seed. |
|
| Method Summary | |
|---|---|
Random |
getRandom()
|
double |
nextDouble()
|
double |
nextDouble(double min,
double max)
Generate a random number in the specified range. |
void |
randomize(BasicNetwork network)
Randomize the synapses and biases in the basic network based on an array, modify the array. |
void |
randomize(BasicNetwork network,
Synapse synapse)
Randomize a synapse, only randomize those connections that are actually connected. |
void |
randomize(double[] d)
Randomize the array based on an array, modify the array. |
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(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. |
void |
setRandom(Random random)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.encog.mathutil.randomize.Randomizer |
|---|
randomize |
| Constructor Detail |
|---|
public BasicRandomizer()
| Method Detail |
|---|
public void randomize(BasicNetwork network)
randomize in interface Randomizernetwork - A network to randomize.
public void randomize(BasicNetwork network,
Synapse synapse)
network - The network the synapse belongs to.synapse - The synapse to randomize.public void randomize(double[] d)
randomize in interface Randomizerd - An array to randomize.public void randomize(Double[] d)
randomize in interface Randomizerd - An array to randomize.public void randomize(double[][] d)
randomize in interface Randomizerd - An array to randomize.public void randomize(Double[][] d)
randomize in interface Randomizerd - An array to randomize.public void randomize(Matrix m)
randomize in interface Randomizerm - A matrix to randomize.public Random getRandom()
public double nextDouble()
public void setRandom(Random random)
random - the random to set
public double nextDouble(double min,
double max)
min - The minimum value.max - The maximum value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||