Nn.Neuron.setWeight C# (CSharp) Method

setWeight() public method

public setWeight ( double weights, int position ) : void
weights double
position int
return void
        public void setWeight(double weights, int position)
        {
            if (inputs.Count > position)
            {
                double save_input = this.inputs[position].input;
                this.inputs[position] = new Input { input = save_input, weight = weights };
            }
            else
            {
                Debug.Log("try to set weight in a too high position");
                throw new IndexOutOfRangeException();
            }
        }
        public void setInput(double input, int position)