simbad.piconode.core.node
Class RecurrentNeuralNetwork

java.lang.Object
  extended by simbad.piconode.core.node.Node
      extended by simbad.piconode.core.node.ConnectedNode
          extended by simbad.piconode.core.node.ModularNode
              extended by simbad.piconode.core.node.Module
                  extended by simbad.piconode.core.node.Network
                      extended by simbad.piconode.core.node.NeuralNetwork
                          extended by simbad.piconode.core.node.RecurrentNeuralNetwork
All Implemented Interfaces:
java.io.Serializable, XmlRepresentation

public class RecurrentNeuralNetwork
extends NeuralNetwork
implements XmlRepresentation, java.io.Serializable

This class implements the basis for a recurrent neural network (no special ability).

See Also:
Serialized Form

Field Summary
 
Fields inherited from class simbad.piconode.core.node.NeuralNetwork
_activationFunctionForArcsFromBiasNeuron, _allNeuronsUnorderedList, _biasArcList, _biasNeuron, _containsBiasNeuron, _init, _inputNeuronsList, _outputNeuronsList
 
Fields inherited from class simbad.piconode.core.node.Network
_arcList, _nodeList
 
Fields inherited from class simbad.piconode.core.node.ConnectedNode
_incomingArcsList, _outgoingArcsList
 
Fields inherited from class simbad.piconode.core.node.Node
_name, nGene
 
Constructor Summary
RecurrentNeuralNetwork()
          create a new network with no bias neuron.
RecurrentNeuralNetwork(ActivationFunction __activationFunctionForArcsFromBiasNeuron)
          Create a new network that contains a bias neuron.
 
Method Summary
protected  void addBiasNeuron()
          Add a bias neuron and connect it to all node in the network Bias neuron is also included in the Input neuron list.
protected  ConnectedNode getNodeAt(int __index)
           
 void initNetwork()
          Perform initialization of the network.
 void step()
          perform one iteration step using input data from incoming nodes if any -- arity must be correct
 void step(java.util.ArrayList __inputValuesList)
          compute output values from input values (i.e.
 java.lang.String toXml()
          Thomas Darde TER NNEDITOR Provides an xml representation of this element Xml DTD is defined in visual piconode
protected  void updateNetwork()
          update all nodes in the network -- must be performed at the end of the step method
 
Methods inherited from class simbad.piconode.core.node.NeuralNetwork
containsBiasNeuron, displayInformation, getBiasArcAt, getBiasArcListSize, getInputNeuronListSize, getNodeListSize, getNumberOfAllArcs, getOutputNeuronAt, getOutputNeuronListSize, getWeightsFromAllArcs, getWeightsFromBiasArcs, getWeightsFromStdArcs, registerArc, registerBiasArc, registerInputNeuron, registerNode, registerOutputNeuron, setAllArcsWeightValues, setBiasArcsWeightValues, setStdArcsWeightValues, stepModule
 
Methods inherited from class simbad.piconode.core.node.Network
getArcAt, getArcListSize, updateGenotype
 
Methods inherited from class simbad.piconode.core.node.Module
getInputRegister, getInputRegisterSize, getOldOutputRegister, getOldOutputRegisterSize, getOutputRegister, getOutputRegisterSize, setInputRegister, setInputRegisterSize, setOldOutputRegister, setOldOutputRegisterSize, setOutputRegister, setOutputRegisterSize
 
Methods inherited from class simbad.piconode.core.node.ModularNode
isUpdated, setUpdated
 
Methods inherited from class simbad.piconode.core.node.ConnectedNode
addIncomingArc, addOutgoingArc, getIncomingArcAt, getIncomingArcsList, getIncomingArcsListSize, getOutgoingArcAt, getOutgoingArcsList, getOutgoingArcsListSize
 
Methods inherited from class simbad.piconode.core.node.Node
getName, getNGene, setName, setNGene
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecurrentNeuralNetwork

public RecurrentNeuralNetwork()
create a new network with no bias neuron.


RecurrentNeuralNetwork

public RecurrentNeuralNetwork(ActivationFunction __activationFunctionForArcsFromBiasNeuron)
Create a new network that contains a bias neuron. Activation function for arcs from bias neuron is given as parameter.

Parameters:
__activationFunctionFromBiasNeuron -
Method Detail

initNetwork

public void initNetwork()
Perform initialization of the network. Should be called only once after all neurons and arcs are registered and input and ouput neurons are identified.


addBiasNeuron

protected void addBiasNeuron()
Add a bias neuron and connect it to all node in the network Bias neuron is also included in the Input neuron list.

Overrides:
addBiasNeuron in class NeuralNetwork

getNodeAt

protected ConnectedNode getNodeAt(int __index)
Overrides:
getNodeAt in class NeuralNetwork

step

public void step(java.util.ArrayList __inputValuesList)
compute output values from input values (i.e. f(in)=out).

Specified by:
step in class Module
Parameters:
__inputValuesList -

updateNetwork

protected void updateNetwork()
update all nodes in the network -- must be performed at the end of the step method


step

public void step()
perform one iteration step using input data from incoming nodes if any -- arity must be correct

Specified by:
step in class Node
Parameters:
__valuesList -

toXml

public java.lang.String toXml()
Thomas Darde TER NNEDITOR Provides an xml representation of this element Xml DTD is defined in visual piconode

Specified by:
toXml in interface XmlRepresentation
Overrides:
toXml in class NeuralNetwork