示例#1
0
 private void CheckInputValuesCanBeClamped(IEnumerable <double> inputValues)
 {
     if (InputUnits.Count() != inputValues.Count())
     {
         throw new ArgumentException(InputValuesCannotBeClampedExceptionMessage);
     }
 }
示例#2
0
        private void ClampInputs(IEnumerable <double> inputValues)
        {
            var i = 0;

            foreach (var inputValue in inputValues)
            {
                InputUnits.ElementAt(i).UnitActivation.Properties.NetInput = inputValue;
                i++;
            }
        }