|
Neural Network Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.practicalstudies.neural.InputNode
Represents an input node to a network.
An InputNode returns an input datum as its output, and has no input connections. This class
reflects the common view that inputs to a neural network are nodes in the network. It also simplifies
programming of hidden nodes, as each hidden node, whether receiving data input directly or the output of
upstream nodes, can always call the Node.getOutput() method to acquire input.
Node| Constructor Summary | |
InputNode()
|
|
| Method Summary | |
int |
addInputConnection(WeightedConnection inputConnection)
As an InputNode by definition has no input connections, an attempt to call this method will result in an UnsupportedOperationException. |
int |
addOutputConnection(WeightedConnection outputConnection)
Add an output connection to this node. |
void |
clearInputConnections()
As an InputNode by definition has no input connections, an attempt to call this method will result in an UnsupportedOperationException. |
void |
clearOutputConnections()
Remove all output connections from this node. |
WeightedConnection |
getInputConnection(int index)
As an InputNode by definition has no input connections, an attempt to call this method will result in an UnsupportedOperationException. |
java.util.List |
getInputConnections()
As an InputNode by definition has no input connections, returns an empty List. |
int |
getNumberInputConnections()
As an InputNode by definition has no input connections, returns 0. |
int |
getNumberOutputConnections()
Returns the number of output connections from this node. |
double |
getOutput()
Returns an input datum. |
WeightedConnection |
getOutputConnection(int index)
Return a specific output connection to this node. |
java.util.List |
getOutputConnections()
Returns a List of WeightedConnections which are the output connections
to this node. |
void |
setOutput(double output)
Specify the value to be returned by getOutput. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InputNode()
| Method Detail |
public final int getNumberInputConnections()
getNumberInputConnections in interface Nodepublic final void clearInputConnections()
clearInputConnections in interface Nodejava.lang.UnsupportedOperationExceptionpublic int addInputConnection(WeightedConnection inputConnection)
addInputConnection in interface NodeinputConnection - a WeightedConnection that will serve as an
additional input connection to this node
java.lang.UnsupportedOperationExceptionpublic WeightedConnection getInputConnection(int index)
getInputConnection in interface Nodeindex - the ordinal number of the input connection, based on the order in which connections were
to this node
WeightedConnection representing the connection requested
java.lang.UnsupportedOperationExceptionpublic java.util.List getInputConnections()
getInputConnections in interface Nodepublic final int getNumberOutputConnections()
Node
getNumberOutputConnections in interface Nodepublic final void clearOutputConnections()
Node
clearOutputConnections in interface Nodepublic int addOutputConnection(WeightedConnection outputConnection)
Node
addOutputConnection in interface NodeoutputConnection - a WeightedConnection that will serve as an
additional output connection to this node
public WeightedConnection getOutputConnection(int index)
Node
getOutputConnection in interface Nodeindex - the ordinal number of the output connection, based on the order in which connections were
to this node
WeightedConnection representing the connection requestedpublic java.util.List getOutputConnections()
NodeWeightedConnections which are the output connections
to this node.
getOutputConnections in interface Nodepublic double getOutput()
getOutput in interface Nodepublic void setOutput(double output)
getOutput.
|
PracticalStudies.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||