예제 #1
0
        internal void AddAxon(int angle, Neuron n)
        {
            Axon axon = new Axon(angle, this, n);

            Axons.Add(axon);
            n.Axons.Add(axon);
        }
예제 #2
0
파일: Neuron.cs 프로젝트: damon-dev/SAIa
        public void CreateAxon(Neuron destination, double strength)
        {
            if (destination == null || IsRoot() || destination.IsRoot())
            {
                return;
            }

            if (destination.DendriteStrength.ContainsKey(this))
            {
                destination.DendriteStrength[this] = strength;
            }
            else
            {
                destination.DendriteStrength.Add(this, strength);
                destination.Dendrites.Add(this);
                Axons.Add(destination);
            }
        }