com.huguesjohnson.jail.neuralNetwork
Class BiasNeuron

java.lang.Object
  |
  +--com.huguesjohnson.jail.neuralNetwork.Neuron
        |
        +--com.huguesjohnson.jail.neuralNetwork.BiasNeuron
All Implemented Interfaces:
java.io.Serializable

public class BiasNeuron
extends Neuron

BiasNeuron

See Also:
Serialized Form

Constructor Summary
BiasNeuron(double bias)
          constructor
 
Method Summary
 double activation()
          activation function
 void adjustWeights()
          not implemented for BiasNeuron
 
Methods inherited from class com.huguesjohnson.jail.neuralNetwork.Neuron
getDesiredOutput, getDoneTraining, getErrorThreshold, getInput, getInput, getInputCount, getInputs, getOutput, getPunishRate, getRewardRate, getWeight, getWeightCount, getWeights, getZ, punishWeight, randomizeWeights, rewardWeight, run, run, run, setDesiredOutput, setDoneTraining, setErrorThreshold, setInput, setPunishRate, setRewardRate, setWeight, setWeights, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BiasNeuron

public BiasNeuron(double bias)
constructor

Parameters:
bias - the value that the neuron will always output
Method Detail

activation

public double activation()
activation function

Specified by:
activation in class Neuron
Returns:
BiasNeuron always returns the bias value for activation

adjustWeights

public void adjustWeights()
not implemented for BiasNeuron

Specified by:
adjustWeights in class Neuron