Class InputNeuron

java.lang.Object
  extended byNeuron
      extended byInputNeuron

public class InputNeuron
extends Neuron

InputNeuron class is used to create Input Neurons

Author:
Raymond McBride

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

InputNeuron

public InputNeuron(int slope)
This constructor for the InputNeuron sets the slope of it's activation function

Parameters:
slope - The slope of the activation function

InputNeuron

public InputNeuron(int slope,
                   int delays)
This constructor for the InputNeuron sets the slope of it's activation function and the number of delays

Parameters:
slope - The slope of the activation function
delays - The number of delays
Method Detail

input

public void input(double input)
Sets the new input Value

Parameters:
input - The new input value

calculateOutput

public void calculateOutput()
Calculates the output value


calculateDelayedOutput

public void calculateDelayedOutput()
Calculates the summation of the delayed output values


getOutputs

public double[] getOutputs()
gets the delayed output values

Returns:
a double array of delayed output values

setBias

public void setBias(double input)
Sets the biased input

Parameters:
input - The new input value

sigmoidActivation

protected double sigmoidActivation(double summation)
The Sigmoid Activation Function

Returns:
the activated value

getInputValue

protected double getInputValue()
Gets the input value

Returns:
the input value

setInputValue

protected void setInputValue(double inputValue)
Sets the input value

Parameters:
inputValue - the input value

getOutputValue

protected double getOutputValue()
Gets the output value

Returns:
the output value

setOutputValue

protected void setOutputValue(double outputValue)
Sets the output value

Parameters:
outputValue - the output value


Copyright © 2004 Raymond McBride. All Rights Reserved.