Package mgui.neuro.graphs
Class NeuralNetNode
java.lang.Object
mgui.interfaces.AbstractInterfaceObject
mgui.interfaces.graphs.AbstractGraphNode
mgui.interfaces.graphs.DefaultGraphNode
mgui.neuro.graphs.NeuralNetNode
- All Implemented Interfaces:
java.lang.Comparable<AbstractGraphNode>
,InterfaceObject
,NamedObject
,TreeObject
,CleanableObject
,XMLObject
public class NeuralNetNode extends DefaultGraphNode
Extension of
DirectedSparseVertex
to specifically represent nodes in neural networks, i.e.,
containing references to instances of Neuron
.- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested classes/interfaces inherited from interface mgui.interfaces.xml.XMLObject
XMLObject.XMLEncoding, XMLObject.XMLType
-
Field Summary
Fields Modifier and Type Field Description protected AbstractNeuron
unit
Fields inherited from class mgui.interfaces.graphs.AbstractGraphNode
current_value, location
Fields inherited from class mgui.interfaces.AbstractInterfaceObject
isDestroyed, tree_nodes
-
Constructor Summary
Constructors Constructor Description NeuralNetNode(AbstractNeuron n)
-
Method Summary
Modifier and Type Method Description AbstractNeuron
getUnit()
double
getWeight(NeuralNetNode target)
Returns the weight of the connection of this node with the target node, if it exists.Methods inherited from class mgui.interfaces.graphs.DefaultGraphNode
clone, getFactory, handleXMLElementStart
Methods inherited from class mgui.interfaces.graphs.AbstractGraphNode
compareTo, getCurrentValue, getDTD, getLabel, getLocalName, getLocation, getShortXML, getXML, getXML, getXML, getXMLSchema, handleXMLElementEnd, handleXMLString, setCurrentValue, setLabel, setLocation, writeXML, writeXML, writeXML
Methods inherited from class mgui.interfaces.AbstractInterfaceObject
clean, destroy, getName, getTreeLabel, isDestroyed, issueTreeNode, setName, setTreeNode, updateTreeNodes
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
unit
-
-
Constructor Details
-
NeuralNetNode
-
-
Method Details
-
getUnit
-
getWeight
Returns the weight of the connection of this node with the target node, if it exists. Returns 0 if:
- this node's unit is null
- this node has no such target
- the target synapse is not an instance of WeightedSynapse
- Parameters:
target
-- Returns:
- weight of the connection to target
-