示例#1
0
        /// <summary>
        /// Connect this Neuron to each of the Neurons in the next layer.
        /// </summary>
        internal void Connect()
        {
            NeuralLayer NextNeuralLayer = ParentNeuralLayer.GetNextNeuralLayer();

            if (NextNeuralLayer != default(NeuralLayer))
            {
                foreach (var NeuronToConnect in NextNeuralLayer.NeuronsInLayer)
                {
                    OutputConnections.Add(new Dendrite(this, NeuronToConnect));
                }
            }
        }
示例#2
0
 /// <summary>
 /// Add the given Dendrite to the list of output connections.
 /// </summary>
 /// <param name="Connection"></param>
 internal void AddOutputConnection(Dendrite Connection)
 {
     OutputConnections.Add(Connection);
 }