simbad.piconode.core.node
Class Neuron

java.lang.Object
  extended by simbad.piconode.core.node.Node
      extended by simbad.piconode.core.node.ConnectedNode
          extended by simbad.piconode.core.node.NeuronalNode
              extended by simbad.piconode.core.node.Neuron
All Implemented Interfaces:
java.io.Serializable, XmlRepresentation
Direct Known Subclasses:
NeuronForBackPropLearning, RecurrentNeuron

public class Neuron
extends NeuronalNode
implements XmlRepresentation, java.io.Serializable

The neuron class contains every thing needed to embed a functional neuron into a NeuralNetwork module. In particular it embeds a reference to an activation function used to compute the neuron value and useful information about the neuron status (in/out/hidden).

See Also:
Serialized Form

Field Summary
protected  ActivationFunction _activationFunction
           
 
Fields inherited from class simbad.piconode.core.node.NeuronalNode
_isInputNode, _isOutputNode, _network, _neuronValue
 
Fields inherited from class simbad.piconode.core.node.ConnectedNode
_incomingArcsList, _outgoingArcsList
 
Fields inherited from class simbad.piconode.core.node.Node
_name, nGene
 
Constructor Summary
Neuron(NeuralNetwork __network)
           
Neuron(NeuralNetwork __network, ActivationFunction __activationFunctionObject)
           
Neuron(NeuralNetwork __network, ActivationFunction __activationFunctionObject, java.lang.String __name)
           
Neuron(NeuralNetwork __network, java.lang.String __name)
           
 
Method Summary
protected  ActivationFunction getActivationFunction()
           
 void setActivationFunction(ActivationFunction __activationFunction)
           
 void step()
          Compute output value of neuron according to input values and an activation function
 java.lang.String toXml()
          Thomas Darde TER NNEDITOR Provides an xml representation of this element Xml DTD is defined in visual piconode
 
Methods inherited from class simbad.piconode.core.node.NeuronalNode
addIncomingArc, checkNetwork, displayInformation, getIncomingArcAt, getIncomingArcsListSize, getNetwork, getOutputValue, isLearningNode, isNetworkInput, isNetworkOutput, setInputValue, setNetworkInputFlag, setNetworkOutputFlag, setValue
 
Methods inherited from class simbad.piconode.core.node.ConnectedNode
addIncomingArc, addOutgoingArc, getIncomingArcsList, 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
 

Field Detail

_activationFunction

protected ActivationFunction _activationFunction
Constructor Detail

Neuron

public Neuron(NeuralNetwork __network)

Neuron

public Neuron(NeuralNetwork __network,
              ActivationFunction __activationFunctionObject)

Neuron

public Neuron(NeuralNetwork __network,
              java.lang.String __name)

Neuron

public Neuron(NeuralNetwork __network,
              ActivationFunction __activationFunctionObject,
              java.lang.String __name)
Method Detail

step

public void step()
Compute output value of neuron according to input values and an activation function

Overrides:
step in class NeuronalNode

getActivationFunction

protected ActivationFunction getActivationFunction()

setActivationFunction

public void setActivationFunction(ActivationFunction __activationFunction)

toXml

public java.lang.String toXml()
Description copied from class: Node
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 NeuronalNode
Returns:
an Xml representation of this object