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 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); } }
public Neuron this[Dendrite index] { get { return(Dendrites.SingleOrDefault(d => d == index).Neuron); } set { throw new NotImplementedException(); /* set the specified index to value here */ } }