Ejemplo n.º 1
0
        public static List <Dendrite> ConnectedTo(this List <Dendrite> list, Neuron owner, Neuron neuron, float weght)
        {
            var dendrite = new Dendrite(owner)
            {
                Value = weght, Acson = neuron.Acson
            };

            neuron.Acson.Dendrites.Add(dendrite);
            list.Add(dendrite);
            return(list);
        }
Ejemplo n.º 2
0
 public static void ConnectedTo(this List <Dendrite> list, params Neuron[] neurons)
 {
     foreach (var neuron in neurons)
     {
         var dendrite = new Dendrite(neuron)
         {
             Acson = neuron.Acson
         };
         list.Add(dendrite);
     }
 }
Ejemplo n.º 3
0
 public Neuron this[Dendrite index]
 {
     get { return(Dendrites.SingleOrDefault(d => d == index).Neuron); }
     set { throw new NotImplementedException(); /* set the specified index to value here */ }
 }