public class Link extends Object implements Serializable
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.
FeedForwardNetwork,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
Node |
getFrom()
Returns the origination
Node for this Link. |
Node |
getTo()
Returns the destination
Node for this Link. |
double |
getWeight()
Returns the weight for this
Link. |
void |
setWeight(double weight)
Sets the weight for this
Link. |
public double getWeight()
Link.double which contains the weight
attributed to this Node.public void setWeight(double weight)
Link.weight - A double which specifies the weight to
attribute to this Link.public Node getFrom()
Node for this Link.Node which is the origination Node
for this Link.public Node getTo()
Node for this Link.Node which is the destination Node
for this Link.Copyright © 2020 Rogue Wave Software. All rights reserved.