Synapse
444546474849505152535455
public void updateWeights(DoubleList x) { for (int i = 0; i < getInputSynapses().size(); ++i) { Synapse s = getInputSynapses().get(i); double w = s.getWeight(); s.setWeight(w + (x.get(i) - w) / c); } ++c; }