|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNeuron
OutputNeuron
The OutputNeuron class creates Output Neurons
Constructor Summary | |
OutputNeuron(int slope,
int numberOfInputs)
This constructor for the OutputNeuron sets the slope of it's activation function
and the number of it's inputs |
Method Summary | |
void |
calculateDelayedOutput()
Calculates the summation of the delayed output values |
void |
calculateOutput()
Calculates the output |
protected double |
getInputValue()
Gets the input value |
protected double |
getOutputValue()
Gets the output value |
void |
input(double input)
Adds a new input value |
void |
setBias(double input)
Sets the biased input |
protected void |
setInputValue(double inputValue)
Sets the input value |
protected void |
setOutputValue(double outputValue)
Sets the output value |
protected double |
sigmoidActivation(double summation)
The Sigmoid Activation Function |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OutputNeuron(int slope, int numberOfInputs)
OutputNeuron
sets the slope of it's activation function
and the number of it's inputs
slope
- The slope of the activation functionnumberOfInputs
- The number of inputsMethod Detail |
public void input(double input)
input
- The new input valuepublic void setBias(double input)
input
- The new input valuepublic void calculateOutput()
public void calculateDelayedOutput()
protected double sigmoidActivation(double summation)
protected double getInputValue()
protected void setInputValue(double inputValue)
inputValue
- the input valueprotected double getOutputValue()
protected void setOutputValue(double outputValue)
outputValue
- the output value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |