Neuroph

org.neuroph.nnet.neuron
Class ThresholdNeuron

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

public class ThresholdNeuron
extends Neuron

The ThresholdNeuron class provides behaviour for neurons with threshold.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
protected  double thresh
          Threshold value for this neuron
 
Fields inherited from class org.neuroph.core.Neuron
error, inputConnections, inputFunction, netInput, outConnections, output, parentLayer, transferFunction
 
Constructor Summary
ThresholdNeuron(InputFunction inputFunction, TransferFunction transferFunction)
          Creates a neuron with threshold behaviour, and with the specified input and transfer functions.
 
Method Summary
 void calculate()
          Calculates neuron's output
 double getThresh()
           
 void setThresh(double thresh)
           
 
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, setInput, 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

thresh

protected double thresh
Threshold value for this neuron

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 neuron
transferFunction - transfer function for this neuron
Method Detail

calculate

public void calculate()
Calculates neuron's output

Overrides:
calculate in class Neuron

getThresh

public double getThresh()

setThresh

public void setThresh(double thresh)

Neuroph