|
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.WeightedConnection
Represents a connection between Nodes.
A WeightedConnection has three attributes:
| Constructor Summary | |
WeightedConnection()
Constructor. |
|
WeightedConnection(Node inputNode,
Node outputNode)
Constructor which allows assignment of input and output Nodes to the connection. |
|
| Method Summary | |
void |
adjustWeight()
Called to adjust the connection weight of this connection if some learning algorithm is in place. |
Node |
getInputNode()
|
double |
getLastWeightChange()
Returns the last change in weight of this function during network learning. |
Node |
getOutputNode()
|
double |
getWeight()
Returns the weight of this connection. |
WeightAdjustmentFunction |
getWeightAdjustmentFunction()
|
void |
randomizeWeight()
Assign a random value to the connection weight of this connection. |
void |
setInputNode(Node inputNode)
|
void |
setLastWeightChange(double lastWeightChange)
Specify the last change in weight of this function. |
void |
setOutputNode(Node outputNode)
|
void |
setWeight(double weight)
Specify the weight of this connection. |
void |
setWeightAdjustmentFunction(WeightAdjustmentFunction weightAdjustmentFunction)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WeightedConnection()
Constructor.
Calls randomizeWeight() to assign a random connection weight
to the connection.
public WeightedConnection(Node inputNode,
Node outputNode)
Constructor which allows assignment of input and output Nodes to the connection.
Calls randomizeWeight() to assign a random connection weight
to the connection.
inputNode - the Node which will provide input to this connectionoutputNode - the Node which will receive input through this connection| Method Detail |
public void randomizeWeight()
public void adjustWeight()
Called to adjust the connection weight of this connection if some learning algorithm is in place.
The learning algorithm will be encapsulated in a WeightAdjustmentFunction
as specified by setWeightAdjustmentFunction.
As an alternative to using this method, the weight may be set explicitly using the
setWeight method.
public final double getWeight()
public final void setWeight(double weight)
public final double getLastWeightChange()
public final void setLastWeightChange(double lastWeightChange)
public Node getInputNode()
public void setInputNode(Node inputNode)
inputNode - the Node which will provide input to this connectionpublic Node getOutputNode()
public void setOutputNode(Node outputNode)
outputNode - the Node which will receive input through this connectionpublic WeightAdjustmentFunction getWeightAdjustmentFunction()
public void setWeightAdjustmentFunction(WeightAdjustmentFunction weightAdjustmentFunction)
|
PracticalStudies.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||