Class BiasNeuron

java.lang.Object
  extended byNeuron
      extended byBiasNeuron

public class BiasNeuron
extends Neuron

The BiasNeuron class creates Bias Neurons which have a fixed value of -1

Author:
Raymond McBride

Constructor Summary
BiasNeuron()
          This constructor for the BiasNeuroninitialises it's input value to -1
 
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
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

BiasNeuron

public BiasNeuron()
This constructor for the BiasNeuroninitialises it's input value to -1

Method Detail

calculateOutput

public void calculateOutput()
Calculates the output value


input

public void input(double input)
Adds a new input value

Parameters:
input - The new input value

setBias

public void setBias(double input)
Sets the biased input

Parameters:
input - The new input value

calculateDelayedOutput

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


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.