Exemplo n.º 1
0
 public static void CreateConnection(Neuron from, Neuron to, double weightVal, int delay)
 {
     DelayedConnection connection = new DelayedConnection(from, to, weightVal, delay);
     to.AddInputConnection(connection);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates connection between two specified neurons
 /// </summary>
 /// <param name="from">output neuron</param>
 /// <param name="to">input neuron</param>
 /// <param name="weight">connection weight</param>
 public static void CreateConnection(Neuron from, Neuron to, Weight weight)
 {
     Connection connection = new Connection(from, to, weight);
     to.AddInputConnection(connection);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates connection with specified weight value between specified neurons
 /// </summary>
 /// <param name="fromNeuron">neuron to connect</param>
 /// <param name="toNeuron">neuron to connect to</param>
 /// <param name="weightVal">connection weight value</param>
 public void CreateConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal)
 {
     Connection connection = new Connection(fromNeuron, toNeuron, weightVal);
     toNeuron.AddInputConnection(connection);
 }