public void SetNeuronLayerThresholds(INeuronLayerNeuronThresholds passedNeuronThresholds) { IEnumerator <INeuronThreshold> neuronThresholdsEnumerator = passedNeuronThresholds.Values; uint neuronIndex = 0; while (neuronThresholdsEnumerator.MoveNext()) { INeuronThreshold current = neuronThresholdsEnumerator.Current; INeuron neuron = this._Neurons[(int)neuronIndex++]; neuron.Threshold = current; } }
public void SetAllLayerThresholds(INeuronLayersNeuronThresholds passedThresholds) { IEnumerator <INeuronLayerNeuronThresholds> neuronLayerThresholdsEnumerator = passedThresholds.Values; uint neuronLayerIndex = 0; while (neuronLayerThresholdsEnumerator.MoveNext()) { INeuronLayerNeuronThresholds currentNeuronLayerNeuronThresholds = neuronLayerThresholdsEnumerator.Current; INeuronLayer neuronLayer = this._Values[(int)neuronLayerIndex++]; neuronLayer.SetNeuronLayerThresholds(currentNeuronLayerNeuronThresholds); } }