|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectNeuron
HiddenNeuron
The HiddenNeuron class is used to create Hidden Neurons
Constructor Summary | |
HiddenNeuron(int slope,
int numberOfInputs)
This constructor for the HiddenNeuron sets the slope of it's activation function
and the number of it's inputs |
|
HiddenNeuron(int slope,
int numberOfInputs,
int delays)
This constructor for the HiddenNeuron sets the slope of it's activation function,
the number of it's inputs and the number of delays |
Method Summary | |
void |
calculateDelayedOutput()
Calculates the summation of the delayed output values |
void |
calculateOutput()
Calculates the output |
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)
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 HiddenNeuron(int slope, int numberOfInputs)
HiddenNeuron
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 inputspublic HiddenNeuron(int slope, int numberOfInputs, int delays)
HiddenNeuron
sets the slope of it's activation function,
the number of it's inputs and the number of delays
slope
- The slope of the activation functionnumberOfInputs
- The number of inputsdelays
- The number of delaysMethod Detail |
public void calculateDelayedOutput()
public double[] getOutputs()
public void input(double input)
input
- The new input valuepublic void setBias(double input)
input
- The new input valuepublic void calculateOutput()
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 |