00001 #ifndef _SIMPLENEURON_H 00002 #define _SIMPLENEURON_H 00003 00004 #include "AbstractNeuron.h" 00005 #include "defines.h" 00006 00007 namespace annie 00008 { 00009 00015 class SimpleNeuron : public AbstractNeuron 00016 { 00017 protected: 00019 ActivationFunction _dActivationFunction; 00020 00022 virtual void _recacheOutput() const; 00023 00025 virtual void _recacheError() const; 00026 00027 public: 00033 SimpleNeuron(int label, bool hasBias = true); 00034 00042 virtual void setDesiredOutput(real desired); 00043 00048 virtual void setActivationFunction(ActivationFunction f, ActivationFunction df); 00049 00051 virtual const char *getClassName() const; 00052 }; 00053 00054 }; //namespace annie 00055 #endif // define _SIMPLENEURON_H 00056