#include <Edge.h>
Public Member Functions | |
Edge (double startWeight, Node *input=nullptr, Neuron *output=nullptr) | |
void | setInput (Node *input) |
void | setOutput (Neuron *output) |
void | updateWeight (double learningRate) |
double | getWeightedOutput () |
double | getWeightedDelta () |
Edge between two nodes with weight W
Create a new Edge between 2 Nodes. Start with given weight
startWeight | initial weight of the edge |
input | start node of the edge |
output | end node of the edge |
double Edge::getWeightedDelta | ( | ) |
Get the delta from the output Neuron weighted for back propagation
double Edge::getWeightedOutput | ( | ) |
Get the output from the edge
void Edge::setInput | ( | Node * | input | ) |
void Edge::setOutput | ( | Neuron * | output | ) |
void Edge::updateWeight | ( | double | learningRate | ) |
Update the weight for the edge based on the backpropagation algorithm
learningRate | distance to update weight |