|
|||||||||
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.ThresholdNeuron
public class ThresholdNeuron
Provides behaviour for neurons with threshold.
Field Summary | |
---|---|
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()
Returns threshold value for this neuron |
void |
setThresh(double thresh)
Sets threshold value for this neuron |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected double thresh
Constructor Detail |
---|
public ThresholdNeuron(InputFunction inputFunction, TransferFunction transferFunction)
inputFunction
- input function for this neurontransferFunction
- transfer function for this neuronMethod Detail |
---|
public void calculate()
calculate
in class Neuron
public double getThresh()
public void setThresh(double thresh)
thresh
- threshold value for this neuron
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |