예제 #1
0
        /// <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);
        }
예제 #2
0
        public static void createConnection(Neuron fromNeuron, Neuron toNeuron, double weightVal, int delay)
        {
            DelayedConnection connection = new DelayedConnection(fromNeuron, toNeuron, weightVal, delay);

            toNeuron.addInputConnection(connection);
        }