com.huguesjohnson.jail.neuralNetwork
Class KohonenNeuron

java.lang.Object
  |
  +--com.huguesjohnson.jail.neuralNetwork.Neuron
        |
        +--com.huguesjohnson.jail.neuralNetwork.KohonenNeuron
All Implemented Interfaces:
java.io.Serializable

public class KohonenNeuron
extends Neuron

KohonenNeuron

See Also:
Serialized Form

Constructor Summary
KohonenNeuron()
          default constructor
KohonenNeuron(double[] input, double[] weights, double desiredOutput, double punishRate, double rewardRate, double errorThreshold)
          constructor
KohonenNeuron(double punishRate, double rewardRate, double errorThreshold)
          constructor
KohonenNeuron(double desiredOutput, double punishRate, double rewardRate, double errorThreshold)
          constructor
 
Method Summary
 double activation()
          activation function
 void adjustWeights()
          adjust weights for the neuron
 
Methods inherited from class com.huguesjohnson.jail.neuralNetwork.Neuron
getDesiredOutput, getDoneTraining, getErrorThreshold, getInput, getInput, getInputCount, getInputs, getOutput, getPunishRate, getRewardRate, getWeight, getWeightCount, getWeights, getZ, punishWeight, randomizeWeights, rewardWeight, run, run, run, setDesiredOutput, setDoneTraining, setErrorThreshold, setInput, setPunishRate, setRewardRate, setWeight, setWeights, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KohonenNeuron

public KohonenNeuron()
default constructor


KohonenNeuron

public KohonenNeuron(double desiredOutput,
                     double punishRate,
                     double rewardRate,
                     double errorThreshold)
constructor

Parameters:
desiredOutput - the desired output of the neuron
punishRate - the punish rate of the neuron
rewardRate - the reward rate of the neuron
errorThreshold - the error threshold of the neuron

KohonenNeuron

public KohonenNeuron(double[] input,
                     double[] weights,
                     double desiredOutput,
                     double punishRate,
                     double rewardRate,
                     double errorThreshold)
constructor

Parameters:
input - the input to the neuron
weights - the weights on the links to the neuron
desiredOutput - the desired output of the neuron
punishRate - the punish rate of the neuron
rewardRate - the reward rate of the neuron
errorThreshold - the error threshold of the neuron

KohonenNeuron

public KohonenNeuron(double punishRate,
                     double rewardRate,
                     double errorThreshold)
constructor

Parameters:
punishRate - the punish rate of the neuron
rewardRate - the reward rate of the neuron
errorThreshold - the error threshold of the neuron
Method Detail

activation

public double activation()
activation function

Specified by:
activation in class Neuron
Returns:
activation for the neuron

adjustWeights

public void adjustWeights()
adjust weights for the neuron

Specified by:
adjustWeights in class Neuron