Esempio n. 1
0
 private void NetValue(NetworkLayer networkLayer, Collection <double> inputVector, double bias)
 {
     foreach (Neuron neuron in networkLayer.NeuronsList)
     {
         neuron.NetValue = NetValue(neuron, inputVector, bias);
     }
 }
Esempio n. 2
0
        private void NetValue(NetworkLayer networkLayer, NetworkLayer previousLayer, double bias)
        {
            Collection <double> vector = new Collection <double>();

            foreach (Neuron neuron in previousLayer.NeuronsList)
            {
                vector.Add(neuron.NetValue);
            }
            foreach (Neuron neuron in networkLayer.NeuronsList)
            {
                neuron.NetValue = NetValue(neuron, vector, bias);
            }
        }