|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNeuron
InputNeuron
InputNeuron class is used to create Input Neurons
Constructor Summary | |
InputNeuron(int slope)
This constructor for the InputNeuron sets the slope of it's activation function |
|
InputNeuron(int slope,
int delays)
This constructor for the InputNeuron sets the slope of it's activation function
and the number of delays |
Method Summary | |
void |
calculateDelayedOutput()
Calculates the summation of the delayed output values |
void |
calculateOutput()
Calculates the output value |
protected double |
getInputValue()
Gets the input value |
double[] |
getOutputs()
gets the delayed output values |
protected double |
getOutputValue()
Gets the output value |
void |
input(double input)
Sets the 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 InputNeuron(int slope)
InputNeuron
sets the slope of it's activation function
slope
- The slope of the activation functionpublic InputNeuron(int slope, int delays)
InputNeuron
sets the slope of it's activation function
and the number of delays
slope
- The slope of the activation functiondelays
- The number of delaysMethod Detail |
public void input(double input)
input
- The new input valuepublic void calculateOutput()
public void calculateDelayedOutput()
public double[] getOutputs()
public void setBias(double input)
input
- The new input valueprotected 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 |