protected Neuron(int inputs) { // allocate weights inputsCount = Math.Max(1, inputs); weights = new double[inputsCount]; // randomize the neuron Randomize(); }