/// <summary> /// Creates connection between two specified neurons /// </summary> /// <param name="fromNeuron"> /// neuron to connect (connection source) </param> /// <param name="toNeuron"> /// neuron to connect to (connection target) </param> /// <param name="weight"> /// connection weight </param> public static void createConnection(Neuron fromNeuron, Neuron toNeuron, Weight weight) { Connection connection = new Connection(fromNeuron, toNeuron, weight); toNeuron.addInputConnection(connection); }
public static void createConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay) { DelayedConnection connection = new DelayedConnection(fromNeuron, toNeuron, weightVal, delay); toNeuron.addInputConnection(connection); }