org.neuroph.nnet.comp.neuron
Class ThresholdNeuron
- java.lang.Object
-
- org.neuroph.core.Neuron
-
- org.neuroph.nnet.comp.neuron.ThresholdNeuron
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class ThresholdNeuron extends Neuron
Provides behaviour for neurons with threshold.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description ThresholdNeuron(InputFunction inputFunction, TransferFunction transferFunction)Creates a neuron with threshold behaviour, and with the specified input and transfer functions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcalculate()Calculates neuron's outputdoublegetThresh()Returns threshold value for this neuronvoidsetThresh(double thresh)Sets threshold value for this neuron-
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, setInput, setInputFunction, setLabel, setOutput, setParentLayer, setTransferFunction
-
-
-
-
Constructor Detail
-
ThresholdNeuron
public ThresholdNeuron(InputFunction inputFunction, TransferFunction transferFunction)
Creates a neuron with threshold behaviour, and with the specified input and transfer functions.- Parameters:
inputFunction- input function for this neurontransferFunction- transfer function for this neuron
-
-
DMelt 3.0 © DataMelt by jWork.ORG