Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Link.h

Go to the documentation of this file.
00001 #ifndef _LINK_H
00002 #define _LINK_H
00003 
00004 #include "defines.h"
00005 
00006 namespace annie
00007 {
00008 
00009 //forward declaration
00010 class Neuron; 
00011 
00016 class Link
00017 {
00018 private:
00020         Neuron *_from;
00021 
00023         Neuron *_to;
00024 
00026     real _weight;
00027 
00034         real _deltaWeight;
00035 
00036         real _lastDeltaWeight;
00037 public:
00043         Link(Neuron *to, Neuron *from);
00044 
00050         Link(Neuron *to, Neuron *from, real weight);
00051 
00056         virtual ~Link();
00057 
00059         Neuron *getSource();
00060 
00062         Neuron *getDestination();
00063         
00065         real getWeight();
00066 
00068         void setWeight(real weight);
00069 
00074         void setDeltaWeight(real delta);
00075 
00082         void updateWeight();
00083 
00089         bool isEqualTo(Link *l);
00090 
00091         real getLastDeltaWeight();
00092 };
00093 
00094 }; //namespace annie
00095 #endif // define _LINK_H
00096 

Generated on Wed Apr 23 10:42:33 2003 for BioFilter by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002