public static Dendrite Get(this List <Dendrite> list, Neuron index) { return(list.SingleOrDefault(d => d.Neuron.Id == index.Id)); }
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); }
public Acson(Neuron neuron) : base(neuron) { Dendrites = new List <Dendrite>(); }
public Dendrite(Neuron neuron) : base(neuron) { }
public NeuronPart(Neuron neuron) { Neuron = neuron; }