org.joone.structure
Class InputNode

java.lang.Object
  extended by org.joone.structure.AbstractNode
      extended by org.joone.structure.InputNode
All Implemented Interfaces:
Node
Direct Known Subclasses:
BiasNode

public class InputNode
extends AbstractNode

An input node. An input node does not have any other nodes firing into it and does not do any internal calculations. It simply passes on its own internal input value. This class allows for the setting, rather than calculation, of that internal value.

Author:
mg

Field Summary
 
Fields inherited from class org.joone.structure.AbstractNode
connections, derivativeFunction, lastDerivative, lastDerivativePattern, lastInputValue, lastOutputValue, lastPattern, order, transportFunction
 
Constructor Summary
InputNode()
           
 
Method Summary
 double getOutputValue(int pattern)
          Retrieve the output value, which is Double.NaN if there is a pattern number mismatch
 void setInputValue(int pattern, double inputValue)
          Set the node's current value
 
Methods inherited from class org.joone.structure.AbstractNode
calculateOrder, getConnections, getDerivative, getInputValue, getOrder, getTreeNode, setOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputNode

public InputNode()
Method Detail

setInputValue

public void setInputValue(int pattern,
                          double inputValue)
Set the node's current value


getOutputValue

public double getOutputValue(int pattern)
Retrieve the output value, which is Double.NaN if there is a pattern number mismatch

Specified by:
getOutputValue in interface Node
Overrides:
getOutputValue in class AbstractNode
Parameters:
pattern - the pattern number, 1 for the first pattern


Submit Feedback to pmarrone@users.sourceforge.net