org.neuroph.nnet.comp.neuron
Class InputOutputNeuron
- java.lang.Object
-
- org.neuroph.core.Neuron
-
- org.neuroph.nnet.comp.neuron.InputOutputNeuron
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class InputOutputNeuron extends Neuron
Provides behaviour specific for neurons which act as input and the output neurons within the same layer. For example in Hopfield network and BAM.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description InputOutputNeuron()Creates an instance of neuron for Hopfield networkInputOutputNeuron(InputFunction inFunc, TransferFunction transFunc)Creates an instance of neuron for Hopfield network with specified input and transfer functions
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcalculate()Calculates neuron outputdoublegetBias()Returns bias value for this neuronvoidsetBias(double bias)Sets bias value for this neuronvoidsetInput(double input)Sets total net input for this cell-
Methods inherited from class org.neuroph.core.Neuron
addInputConnection, addInputConnection, addInputConnection, clone, getConnectionFrom, getDelta, getError, getInputConnections, getInputFunction, getLabel, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeights, hasInputConnectionFrom, hasInputConnections, hasOutputConnectionTo, initializeWeights, removeAllConnections, removeAllInputConnections, removeAllOutputConnections, removeInputConnectionFrom, removeOutputConnectionTo, reset, setDelta, setError, setInputFunction, setLabel, setOutput, setParentLayer, setTransferFunction
-
-
-
-
Constructor Detail
-
InputOutputNeuron
public InputOutputNeuron()
Creates an instance of neuron for Hopfield network
-
InputOutputNeuron
public InputOutputNeuron(InputFunction inFunc, TransferFunction transFunc)
Creates an instance of neuron for Hopfield network with specified input and transfer functions- Parameters:
inFunc- neuron input functiontransFunc- neuron transfer function
-
-
Method Detail
-
setInput
public void setInput(double input)
Sets total net input for this cell
-
getBias
public double getBias()
Returns bias value for this neuron- Returns:
- bias value for this neuron
-
setBias
public void setBias(double bias)
Sets bias value for this neuron- Parameters:
bias- bias value for this neuron
-
-
DMelt 3.0 © DataMelt by jWork.ORG