GestureRecognitionToolkit  Version: 0.2.0
The Gesture Recognition Toolkit (GRT) is a cross-platform, open-source, c++ machine learning library for real-time gesture recognition.
Neuron.h
Go to the documentation of this file.
1 
31 #ifndef GRT_NEURON_HEADER
32 #define GRT_NEURON_HEADER
33 
34 #include "../../../Util/GRTCommon.h"
35 
36 GRT_BEGIN_NAMESPACE
37 
38 class GRT_API Neuron{
39 public:
40  Neuron();
41  ~Neuron();
42 
43  bool init(const UINT numInputs,const UINT actvationFunction);
44  void clear();
45  Float fire(const VectorFloat &x);
46  Float getDerivative(const Float &y);
47  static bool validateActivationFunction(const UINT actvationFunction);
48 
49  Float gamma;
50  Float bias;
51  Float previousBiasUpdate;
52  VectorFloat weights;
53  VectorFloat previousUpdate;
54  UINT numInputs;
55  UINT activationFunction;
56 
57  enum ActivationFunctions{LINEAR=0,SIGMOID,BIPOLAR_SIGMOID,NUMBER_OF_ACTIVATION_FUNCTIONS};
58 };
59 
60 GRT_END_NAMESPACE
61 
62 #endif //GRT_NEURON_HEADER
63 
64 
Definition: Neuron.h:38