00001 #ifndef _LAYER_H 00002 #define _LAYER_H 00003 00004 #include "Neuron.h" 00005 #include "Link.h" 00006 00007 namespace annie 00008 { 00009 00014 class Layer 00015 { 00016 protected: 00018 int _label; 00019 00024 int _size; 00025 00027 std::vector<Neuron *> _neurons; 00028 00029 public: 00034 static const int MAX_LAYER_SIZE = MAX_NEURONS_IN_LAYER; 00035 00037 Layer(int label); 00038 00039 virtual ~Layer(); 00040 00042 virtual int getLabel(); 00043 00045 virtual int getSize(); 00046 00048 virtual void addNeuron(Neuron *nrn); 00049 00054 virtual Neuron& getNeuron(int i); 00055 00057 virtual VECTOR getActivation(); 00058 00060 virtual VECTOR getOutput(); 00061 00063 virtual const char *getClassName(); 00064 }; 00065 }; //namespace annie 00066 #endif // define _LAYER_H 00067
1.2.14 written by Dimitri van Heesch,
© 1997-2002