예제 #1
0
        /// <summary>
        /// Gets the pos'th instance of an input neuron of this hidden neuron.
        /// </summary>
        /// <param name="pos">The input neuron number. Starts at 0.</param>
        /// <returns>The pos'th instance of an input neuron of this hidden neuron.</returns>
        public InputNeuronFFNN GetInputNeuron(int pos)
        {
            InputNeuronFFNN i = null;

            if (pos < this.inputNeurons.Count)
            {
                i = this.inputNeurons.ElementAt(pos);
            }
            return(i);
        }
예제 #2
0
 /// <summary>
 /// Adds an instance of an input neuron as one of the inputs to this hidden neuron.
 /// </summary>
 /// <param name="iNeuron">Input neuron instance.</param>
 public void AddInputNeuron(InputNeuronFFNN iNeuron)
 {
     this.inputNeurons.Add(iNeuron);
 }