Encog.Neural.Networks.Training.NEAT.NEATLinkGene.Copy C# (CSharp) Method

Copy() public method

Copy from another gene.
public Copy ( IGene gene ) : void
gene IGene The other gene.
return void
        public override void Copy(IGene gene)
        {
            NEATLinkGene other = (NEATLinkGene)gene;
            this.Enabled = other.Enabled;
            fromNeuronID = other.fromNeuronID;
            toNeuronID = other.toNeuronID;
            this.InnovationId = other.InnovationId;
            recurrent = other.recurrent;
            weight = other.weight;
        }