The Encog Project

org.encog.util.randomize
Class BasicRandomizer

java.lang.Object
  extended by org.encog.util.randomize.BasicRandomizer
All Implemented Interfaces:
Randomizer
Direct Known Subclasses:
ConsistentRandomizer, ConstRandomizer, Distort, FanInRandomizer, RangeRandomizer

public abstract class BasicRandomizer
extends java.lang.Object
implements Randomizer

Provides basic functionality that most randomizers will need.

Author:
jheaton

Constructor Summary
BasicRandomizer()
           
 
Method Summary
 void randomize(BasicNetwork network)
          Randomize the synapses and thresholds in the basic network based on an array, modify the array.
 void randomize(double[] d)
          Randomize the array based on an array, modify the array.
 void randomize(java.lang.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(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.encog.util.randomize.Randomizer
randomize
 

Constructor Detail

BasicRandomizer

public BasicRandomizer()
Method Detail

randomize

public void randomize(BasicNetwork network)
Randomize the synapses and thresholds in the basic network based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Specified by:
randomize in interface Randomizer
Parameters:
network - A network to randomize.

randomize

public void randomize(double[] d)
Randomize the array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Specified by:
randomize in interface Randomizer
Parameters:
d - An array to randomize.

randomize

public void randomize(java.lang.Double[] d)
Randomize the array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Specified by:
randomize in interface Randomizer
Parameters:
d - An array to randomize.

randomize

public void randomize(double[][] d)
Randomize the 2d array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Specified by:
randomize in interface Randomizer
Parameters:
d - An array to randomize.

randomize

public void randomize(java.lang.Double[][] d)
Randomize the 2d array based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Specified by:
randomize in interface Randomizer
Parameters:
d - An array to randomize.

randomize

public void randomize(Matrix m)
Randomize the matrix based on an array, modify the array. Previous values may be used, or they may be discarded, depending on the randomizer.

Specified by:
randomize in interface Randomizer
Parameters:
m - A matrix to randomize.

The Encog Project