/// <summary> /// Adds a neuron with random weight /// </summary> public void AddNeuron() { var neuron = new Neuron { Weight = this.GetRandomWeight() }; this.Neurons.Add(neuron); }
/// <summary> /// Removes a neuron /// </summary> /// <param name="neuron">The neuron to be removed</param> /// <returns>True if it succeeds.</returns> public bool RemoveNeuron(Neuron neuron) { return this.Neurons.Remove(neuron); }