com.huguesjohnson.jail.neuralNetwork
Class KohonenLayer

java.lang.Object
  |
  +--com.huguesjohnson.jail.neuralNetwork.Layer
        |
        +--com.huguesjohnson.jail.neuralNetwork.KohonenLayer
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class KohonenLayer
extends Layer

KohonenLayer

See Also:
Serialized Form

Constructor Summary
KohonenLayer()
          default constructor
KohonenLayer(int layerSize, int inputSize, double punishRate, double rewardRate, double errorThreshold)
          constructor
 
Method Summary
 void computeOutput()
          compute the output for the layer
 void runComplete()
          method invoked when run is complete
 void train()
          move actual output closer to desired output
 
Methods inherited from class com.huguesjohnson.jail.neuralNetwork.Layer
adjustTrainingRate, computeError, getDesiredOutput, getDoneTraining, getError, getNeuron, getOutput, getOutput, getSize, initOutput, insertNeuron, insertNeuron, removeNeuron, run, setDesiredOutput, setDoneTraining, setInput, setNeuron, setOutput, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KohonenLayer

public KohonenLayer()
default constructor


KohonenLayer

public KohonenLayer(int layerSize,
                    int inputSize,
                    double punishRate,
                    double rewardRate,
                    double errorThreshold)
constructor

Parameters:
layerSize - the number of neurons in the layer
inputSize - the number of inputs to the layer
punishRate - the punish rate for every neuron in the layer
rewardRate - the reward rate for every neuron in the layer
errorThreshold - the error threshold for every neuron in the layer
Method Detail

runComplete

public void runComplete()
method invoked when run is complete

Overrides:
runComplete in class Layer

train

public void train()
move actual output closer to desired output

Specified by:
train in class Layer

computeOutput

public void computeOutput()
compute the output for the layer

Specified by:
computeOutput in class Layer