#include <connection.h>
Public Methods | |
Connection (const Neuron *source=NULL, const Neuron *target=NULL, double weight=0) | |
double | weight () const |
void | setWeight (double w) |
void | operator= (double w) |
void | init (double r=0.0) |
const Neuron & | source () const |
Neuron & | source () |
const Neuron & | target () const |
Neuron & | target () |
void | setSource (const Neuron *newSource) |
void | setTarget (const Neuron *newTarget) |
void | cut () |
virtual double | transfer () |
virtual void | copy (const Connection &o) |
virtual Connection * | clone () const |
virtual void | check (int netSize) const |
Owner of the connection is always the target neuron, and the connection points to the source neuron.
Definition at line 50 of file connection.h.
|
Standard constructor.
Definition at line 42 of file connection.cc. References weight(). Referenced by clone(). |
|
Implementation for Object.
Definition at line 78 of file connection.cc. Referenced by Neuron::check(), and BiNode::check(). |
|
Implementation for Object.
Definition at line 110 of file connection.h. References Connection(). |
|
Standard deep copy operator.
Definition at line 67 of file connection.cc. References weight(). Referenced by Neuron::copy(). |
|
Cuts both source and target references.
Definition at line 95 of file connection.h. |
|
Initializes the weight randomly to range (-r,r).
Definition at line 57 of file connection.cc. Referenced by Neuron::init(). |
|
Sets the weight of the connection.
Definition at line 71 of file connection.h. |
|
Reconnects to another source neuron.
Definition at line 89 of file connection.h. |
|
Reconnects to another target neuron.
Definition at line 92 of file connection.h. |
|
Sets the weight of the connection.
Definition at line 68 of file connection.h. Referenced by RPropTrainer::updateWeights(). |
|
Returns the source neuron of the connection.
Definition at line 80 of file connection.h. |
|
Returns the source neuron of the connection.
Definition at line 77 of file connection.h. Referenced by BiNode::disconnectFrom(), ANNetwork::drawEPS(), and Neuron::transfer(). |
|
Returns the target neuron of the connection.
Definition at line 86 of file connection.h. |
|
Returns the target neuron of the connection.
Definition at line 83 of file connection.h. |
|
Transfers a signal through this connection.
Definition at line 62 of file connection.cc. References Neuron::output(). |
|
Returns the weight of the connection.
Definition at line 65 of file connection.h. Referenced by Neuron::bias(), Connection(), copy(), Neuron::transfer(), and RPropTrainer::updateWeights(). |