NNetCpp
Neural network implementation in C++
 All Classes Namespaces Functions Variables
OutputNeuron.h
1 #ifndef OUTPUT_NEURON_H
2 #define OUTPUT_NEURON_H
3 
4 #include <functional>
5 #include <vector>
6 
7 #include "Neuron.h"
8 
12 class OutputNeuron: public Neuron{
13  private:
14  double targetValue = 0;
15  public:
21  OutputNeuron(std::function<double(double)> activationFunc);
22 
30  OutputNeuron(std::function<double(double)> activationFunc,
31  std::vector<Edge*> inputs);
32 
40  OutputNeuron(std::function<double(double)> activationFunc, double targetValue);
41 
47  void calcDelta();
48 
54  void setTarget(double targetValue);
55 
61  double getDifference();
62 };
63 
64 #endif // OUTPUT_NEURON_H
Definition: Neuron.h:15
double getDifference()
Definition: OutputNeuron.cpp:27
Definition: OutputNeuron.h:12
void calcDelta()
Definition: OutputNeuron.cpp:15
void setTarget(double targetValue)
Definition: OutputNeuron.cpp:23
OutputNeuron(std::function< double(double)> activationFunc)
Definition: OutputNeuron.cpp:3