Encog.Neural.Thermal.HopfieldNetwork.Run C# (CSharp) Method

Run() public method

Perform one Hopfield iteration.
public Run ( ) : void
return void
        public void Run()
        {
            for (int toNeuron = 0; toNeuron < NeuronCount; toNeuron++)
            {
                double sum = 0;
                for (int fromNeuron = 0; fromNeuron < NeuronCount; fromNeuron++)
                {
                    sum += CurrentState[fromNeuron]
                           *GetWeight(fromNeuron, toNeuron);
                }
                CurrentState[toNeuron] = sum;
            }
        }