AdvancedOCR.FeedForwardWeights.PropogateForward C# (CSharp) Method

PropogateForward() protected method

protected PropogateForward ( Step downstream, Step upstream, int upstreamNeuron, int inputNeuron ) : void
downstream Step
upstream Step
upstreamNeuron int
inputNeuron int
return void
        protected void PropogateForward(Step downstream, Step upstream, int upstreamNeuron, int inputNeuron)
        {
            int weightIndex = inputNeuron * OutputNeurons;

            double upstreamNeuronOutput = upstream.Output[upstreamNeuron];
            double weightedSum = Bias;
            for (int o = 0; o < OutputNeurons; o++)
            {
                downstream.WeightedInputs[o] += upstreamNeuronOutput * Weight[weightIndex++];
            }
        }