Пример #1
0
        /// <summary>
        /// Connects two neurons. This neuron is the INPUT neuron of the connection.
        /// </summary>
        /// <param name="inputNeuron"></param>
        public void AddOutputNeuron(INeuron outputNeuron)
        {
            var synapse = new Synapse(this, outputNeuron);

            Outputs.Add(synapse);
            outputNeuron.Inputs.Add(synapse);
        }
Пример #2
0
        /// <summary>
        /// Connects two neurons to each other. This neuron is the OUTPUT neuron of the connection.
        /// </summary>
        /// <param name="inputNeuron">Neuron that will be the input neuron of the newly created connection.</param>
        public void AddInputNeuron(INeuron inputNeuron)
        {
            var synapse = new Synapse(inputNeuron, this);

            Inputs.Add(synapse);
            inputNeuron.Outputs.Add(synapse);
        }