예제 #1
0
        public Synaption ConnectTo(Neuron toNeuron, double EasinessOfActivation, bool IsBlocking)
        {
            var synaption = new Synaption(this, toNeuron, EasinessOfActivation, IsBlocking);

            this.Layer.Network.Synapses.Add(synaption);
            return(synaption);
        }
예제 #2
0
        internal Synaption Clone(Network newNetwork)
        {
            Synaption ret = new Synaption();

            ret.EasinessOfActivation = EasinessOfActivation;
            ret.IsBlocking           = IsBlocking;
            ret.FromNeuron           = newNetwork.Neurons[this.FromNeuron.ID];
            ret.ToNeuron             = newNetwork.Neurons[this.ToNeuron.ID];
            return(ret);
        }