NNetCpp
Neural network implementation in C++
 All Classes Namespaces Functions Variables
Edge.h
1 #ifndef EDGE_H
2 #define EDGE_H
3 
4 #include "Node.h"
5 #include "Neuron.h"
6 
7 //Forward declararions
8 class Neuron;
9 
19 class Edge {
20  private:
21  double weight = 0;
22  Node* input = nullptr;
23  Neuron* output = nullptr;
24  public:
32  Edge(double startWeight, Node* input = nullptr, Neuron* output = nullptr);
33 
39  void setInput(Node* input);
40 
49  void setOutput(Neuron* output);
50 
55  void updateWeight(double learningRate);
56 
62  double getWeightedOutput();
63 
69  double getWeightedDelta();
70 };
71 
72 #endif // EDGE_H
void setOutput(Neuron *output)
Definition: Edge.cpp:10
Definition: Neuron.h:15
Definition: Node.h:7
double getWeightedDelta()
Definition: Edge.cpp:30
Definition: Edge.h:19
Edge(double startWeight, Node *input=nullptr, Neuron *output=nullptr)
Definition: Edge.cpp:3
double getWeightedOutput()
Definition: Edge.cpp:25
void setInput(Node *input)
Definition: Edge.cpp:6
void updateWeight(double learningRate)
Definition: Edge.cpp:14