The Encog Project

org.encog.neural.networks.layers
Class SOMLayer

java.lang.Object
  extended by org.encog.neural.networks.layers.BasicLayer
      extended by org.encog.neural.networks.layers.SOMLayer
All Implemented Interfaces:
java.io.Serializable, Layer, EncogPersistedObject

public class SOMLayer
extends BasicLayer
implements java.io.Serializable, EncogPersistedObject

SelfOrganizingMap: The Self Organizing Map, or Kohonen Neural Network, is a special type of neural network that is used to classify input into groups. The SOM makes use of unsupervised training.

See Also:
Serialized Form

Field Summary
static double VERYSMALL
          Do not allow patterns to go below this very small number.
 
Constructor Summary
SOMLayer(int inputCount, NormalizeInput.NormalizationType normalizationType)
          The constructor.
 
Method Summary
 NeuralData compute(NeuralData pattern)
          Compute the output from this layer.
 NormalizeInput.NormalizationType getNormalizationType()
          Get the normalization type.
 void setNext(Layer next)
          Set the next layer.
 
Methods inherited from class org.encog.neural.networks.layers.BasicLayer
getFire, getFire, getMatrix, getMatrixSize, getNeuronCount, getNext, getPrevious, hasMatrix, isHidden, isInput, isOutput, reset, setFire, setFire, setMatrix, setPrevious
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERYSMALL

public static final double VERYSMALL
Do not allow patterns to go below this very small number.

See Also:
Constant Field Values
Constructor Detail

SOMLayer

public SOMLayer(int inputCount,
                NormalizeInput.NormalizationType normalizationType)
The constructor.

Parameters:
inputCount - Number of input neurons
normalizationType - The normalization type to use.
Method Detail

compute

public NeuralData compute(NeuralData pattern)
Compute the output from this layer.

Specified by:
compute in interface Layer
Overrides:
compute in class BasicLayer
Parameters:
pattern - The pattern to compute for.
Returns:
The output from the layer.

getNormalizationType

public NormalizeInput.NormalizationType getNormalizationType()
Get the normalization type.

Returns:
The normalization type.

setNext

public void setNext(Layer next)
Set the next layer.

Specified by:
setNext in interface Layer
Overrides:
setNext in class BasicLayer
Parameters:
next - the next layer.

The Encog Project