Пример #1
0
 /// <summary>
 ///     Adds a neuron with random weight
 /// </summary>
 public void AddNeuron()
 {
     var neuron = new Neuron { Weight = this.GetRandomWeight() };
     this.Neurons.Add(neuron);
 }
Пример #2
0
 /// <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);
 }