org.simnet.neurons
Class TemporalDifferenceNeuron

java.lang.Object
  extended by org.simnet.interfaces.Neuron
      extended by org.simnet.neurons.TemporalDifferenceNeuron
All Implemented Interfaces:
GaugeSource

public class TemporalDifferenceNeuron
extends Neuron

TemporalDifferenceNeuron.


Field Summary
 
Fields inherited from class org.simnet.interfaces.Neuron
activation, fanIn, fanOut, lowerBound, upperBound
 
Constructor Summary
TemporalDifferenceNeuron()
          Default constructor needed for external calls which create neurons then set their parameters.
TemporalDifferenceNeuron(Neuron n)
          This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.
 
Method Summary
 Neuron duplicate()
          Returns a duplicate TemporalDifference (used, e.g., in copy/paste).
 double getAlpha()
           
 double getBeta()
           
static String getName()
           
 int getTimeType()
          TODO: Not really true...
 void setAlpha(double alpha)
           
 void setBeta(double beta)
           
 void update()
          Update neuron.
 
Methods inherited from class org.simnet.interfaces.Neuron
addActivation, addSource, addTarget, checkBounds, clear, clip, connectedToWeight, containsString, debug, decrementActivation, deleteConnectedSynapses, deleteFanIn, deleteFanOut, duplicate, getActivation, getAverageInput, getBuffer, getFanIn, getFanOut, getGaugeValue, getHelp, getId, getIncrement, getInputValue, getLowerBound, getMotorCoupling, getNeuronTypeIndex, getNumberOfActiveInputs, getParentNetwork, getSensoryCoupling, getSummedIncomingWeights, getToolTipText, getTotalInput, getType, getTypeList, getUpperBound, getWeightedInputs, getX, getY, incrementActivation, initCastor, isInput, isOutput, randomize, randomizeBuffer, round, setActivation, setBuffer, setFanIn, setFanOut, setId, setIncrement, setInputValue, setLowerBound, setMotorCoupling, setParentNetwork, setSensoryCoupling, setTypeList, setUpperBound, setX, setY, toString, updateConnectedOutward
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemporalDifferenceNeuron

public TemporalDifferenceNeuron()
Default constructor needed for external calls which create neurons then set their parameters.


TemporalDifferenceNeuron

public TemporalDifferenceNeuron(Neuron n)
This constructor is used when creating a neuron of one type from another neuron of another type Only values common to different types of neuron are copied.

Parameters:
n - Neuron to make the type
Method Detail

getTimeType

public int getTimeType()
TODO: Not really true...

Specified by:
getTimeType in class Neuron
Returns:
time type.

duplicate

public Neuron duplicate()
Returns a duplicate TemporalDifference (used, e.g., in copy/paste).

Specified by:
duplicate in class Neuron
Returns:
Duplicated neuron

update

public void update()
Update neuron.

Specified by:
update in class Neuron

getName

public static String getName()
Returns:
Name of neuron type.

getAlpha

public double getAlpha()
Returns:
alpha.

setAlpha

public void setAlpha(double alpha)
Parameters:
alpha - Parameter to be set.

getBeta

public double getBeta()
Returns:
beta.

setBeta

public void setBeta(double beta)
Parameters:
beta - Parameter to be set.