public class ThresholdNeuron extends Neuron
| Modifier and Type | Field and Description |
|---|---|
protected double |
thresh
Threshold value for this neuron
|
delta, inputConnections, inputFunction, outConnections, output, parentLayer, totalInput, transferFunction| Constructor and Description |
|---|
ThresholdNeuron(InputFunction inputFunction,
TransferFunction transferFunction)
Creates a neuron with threshold behaviour, and with the specified input
and transfer functions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calculate()
Calculates neuron's output
|
double |
getThresh()
Returns threshold value for this neuron
|
void |
setThresh(double thresh)
Sets threshold value for this neuron
|
addInputConnection, addInputConnection, addInputConnection, addOutputConnection, clone, getConnectionFrom, getDelta, getInputConnections, getInputFunction, getLabel, getNetInput, getOutConnections, getOutput, getParentLayer, getTransferFunction, getWeights, hasInputConnectionFrom, hasInputConnections, hasOutputConnectionTo, initializeWeights, removeAllConnections, removeAllInputConnections, removeAllOutputConnections, removeInputConnection, removeInputConnectionFrom, removeOutputConnection, removeOutputConnectionTo, reset, setDelta, setInput, setInputFunction, setLabel, setOutput, setParentLayer, setTransferFunctionpublic ThresholdNeuron(InputFunction inputFunction, TransferFunction transferFunction)
inputFunction - input function for this neurontransferFunction - transfer function for this neuronCopyright © 2019 Neuroph Project. All rights reserved.