Package com.imsl.datamining.neural
Class Link
java.lang.Object
com.imsl.datamining.neural.Link
- All Implemented Interfaces:
Serializable
A link in a neural network.
Link objects are not created directly. Instead, they are
created by factory methods in FeedForwardNetwork.
The most useful method is FeedForwardNetwork.linkAll which
creates Link objects connecting every Node in each
Layer to every Node in the next Layer.
The method FeedForwardNetwork.link(Node,Node) creates a Link
from a Node to any Node in a later
Layer.
The method FeedForwardNetwork.findLink(Node,Node) returns the
Link connecting two Nodes in the Network.
The method FeedForwardNetwork.remove(Link) removes a Link
from the Network.
Each Link object contains a weight. Weights are used
in computing Perceptron values.
- See Also:
-
Method Summary
-
Method Details
-
getWeight
public double getWeight()Returns the weight for thisLink.- Returns:
- A
doublewhich contains the weight attributed to thisNode.
-
setWeight
public void setWeight(double weight) Sets the weight for thisLink.- Parameters:
weight- Adoublewhich specifies the weight to attribute to thisLink.
-
getFrom
Returns the originationNodefor thisLink.- Returns:
- A
Nodewhich is the originationNodefor thisLink.
-
getTo
Returns the destinationNodefor thisLink.- Returns:
- A
Nodewhich is the destinationNodefor thisLink.
-