|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.neuroph.core.Neuron
org.neuroph.nnet.comp.HopfieldNeuron
public class HopfieldNeuron
The HopfieldNeuron class provides neuron behaviour specific for Hopfield network. This neuron is specific because it act as input and the output neuron within the same layer, and has lateral connections.
Field Summary | |
---|---|
private double |
bias
Bias value for this neuron |
private boolean |
isInputSet
Flag which is set true if neuron input is externaly set |
private static long |
serialVersionUID
The class fingerprint that is set to indicate serialization compatibility with a previous version of the class. |
Fields inherited from class org.neuroph.core.Neuron |
---|
error, inputConnections, inputFunction, netInput, outConnections, output, parentLayer, transferFunction |
Constructor Summary | |
---|---|
HopfieldNeuron(InputFunction inFunc,
TransferFunction transFunc)
Creates an instance of neuron for Hopfield network with specified input and transfer functions |
Method Summary | |
---|---|
void |
calculate()
Calculates neuron output |
double |
getBias()
Returns bias value for this neuron |
void |
setBias(double bias)
Sets bias value for this neuron |
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, getWeightsVector, hasInputConnections, randomizeInputWeights, removeInputConnectionFrom, 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 |
---|
private static final long serialVersionUID
private boolean isInputSet
private double bias
Constructor Detail |
---|
public HopfieldNeuron(InputFunction inFunc, TransferFunction transFunc)
inFunc
- neuron input functiontransFunc
- neuron transfer functionMethod Detail |
---|
public void setInput(double input)
setInput
in class Neuron
input
- input valuepublic double getBias()
public void setBias(double bias)
bias
- bias value for this neuronpublic void calculate()
calculate
in class Neuron
|
Neuroph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |