Encog.Neural.Networks.Training.Competitive.CompetitiveTraining.CopyInputPattern C# (CSharp) Method

CopyInputPattern() private method

Copy the specified input pattern to the weight matrix. This causes an output neuron to learn this pattern "exactly". This is useful when a winner is to be forced.
private CopyInputPattern ( ISynapse synapse, int outputNeuron, INeuralData input ) : void
synapse ISynapse The synapse that is the target of the copy.
outputNeuron int The output neuron to set.
input INeuralData The input pattern to copy.
return void
        private void CopyInputPattern(ISynapse synapse,
                 int outputNeuron, INeuralData input)
        {
            for (int inputNeuron = 0; inputNeuron < this.inputNeuronCount;
                inputNeuron++)
            {
                synapse.WeightMatrix[inputNeuron, outputNeuron] =
                        input[inputNeuron];
            }
        }