updateInput method

  1. @override
void updateInput(
  1. Iterable<Connection> inputs
)
override

Implementation

@override
void updateInput(Iterable<Connection> inputs) {
  num sum = 0;
  for(var i in inputs) {
    var node = i.from;
    var weight = i.weight;
    var output = node.getOutput();
    sum += weight * output;
  }
  input = activationFunction.f(sum);
}