The Encog Project

org.encog.util.randomize
Interface Randomizer

All Known Implementing Classes:
BasicRandomizer, Distort, FanInRandomizer, RangeRandomizer

public interface Randomizer

Defines the interface for a class that is capable of randomizing the weights and thresholds of a neural network.

Author:
jheaton

Method Summary
 void randomize(BasicNetwork network)
          Randomize the synapses and thresholds in the basic network based on an array, modify the array.
 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(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.
 

Method Detail

randomize

double randomize(double d)
Starting with the specified number, randomize it to the degree specified by this randomizer. This could be a totally new random number, or it could be based on the specified number.

Parameters:
d - The number to randomize.
Returns:
A randomized number.

randomize

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.

Parameters:
d - An array to randomize.

randomize

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.

Parameters:
d - An array to randomize.

randomize

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.

Parameters:
d - An array to randomize.

randomize

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.

Parameters:
d - An array to randomize.

randomize

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.

Parameters:
m - A matrix to randomize.

randomize

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.

Parameters:
network - A network to randomize.

The Encog Project