private void NetValue(NetworkLayer networkLayer, Collection <double> inputVector, double bias) { foreach (Neuron neuron in networkLayer.NeuronsList) { neuron.NetValue = NetValue(neuron, inputVector, bias); } }
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); } }