Пример #1
0
 public static Dendrite Get(this List <Dendrite> list, Neuron index)
 {
     return(list.SingleOrDefault(d => d.Neuron.Id == index.Id));
 }
Пример #2
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);
        }
Пример #3
0
 public Acson(Neuron neuron) : base(neuron)
 {
     Dendrites = new List <Dendrite>();
 }
Пример #4
0
 public Dendrite(Neuron neuron) : base(neuron)
 {
 }
Пример #5
0
 public NeuronPart(Neuron neuron)
 {
     Neuron = neuron;
 }