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); }
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); }