Neuroph

org.neuroph.nnet.neuron
Class HopfieldNeuron

java.lang.Object
  extended by org.neuroph.core.Neuron
      extended by org.neuroph.nnet.neuron.HopfieldNeuron
All Implemented Interfaces:
java.io.Serializable

public class HopfieldNeuron
extends Neuron

The HopfieldNeuron class provides neuron behaviour specific for Hopfield network.

See Also:
Serialized Form

Field Summary
private  double bias
           
private  boolean extInputSet
           
private static long serialVersionUID
           
 
Fields inherited from class org.neuroph.core.Neuron
error, inputConnections, inputFunction, netInput, outConnections, output, parentLayer, transferFunction
 
Constructor Summary
HopfieldNeuron(InputFunction inFunc, TransferFunction transFunc)
           
 
Method Summary
 void calculate()
          Calculates cell output
 double getBias()
           
 void setBias(double bias)
           
 void setInput(double input)
          Sets total net input for this cell
 
Methods inherited from class org.neuroph.core.Neuron
addInputConnection, addInputConnection, addOutputConnection, getConnectionFrom, getError, getInputConnections, getInputFunction, getInputsIterator, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeightVector, hasInputConnections, randomizeInputWeights, removeInput, reset, setError, setInputFunction, setOutput, setParentLayer, setTransferFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

extInputSet

private boolean extInputSet

bias

private double bias
Constructor Detail

HopfieldNeuron

public HopfieldNeuron(InputFunction inFunc,
                      TransferFunction transFunc)
Method Detail

setInput

public void setInput(double input)
Sets total net input for this cell

Overrides:
setInput in class Neuron
Parameters:
input - input value

getBias

public double getBias()

setBias

public void setBias(double bias)

calculate

public void calculate()
Calculates cell output

Overrides:
calculate in class Neuron

Neuroph