Accord.Genetic.GEPChromosome.GEPChromosome C# (CSharp) Method

GEPChromosome() protected method

Initializes a new instance of the GEPChromosome class.
protected GEPChromosome ( GEPChromosome source ) : System
source GEPChromosome Source GEP chromosome to clone from.
return System
        protected GEPChromosome(GEPChromosome source)
        {
            headLength = source.headLength;
            length = source.length;
            fitness = source.fitness;
            // allocate genes array
            genes = new IGPGene[length];
            // copy genes
            for (int i = 0; i < length; i++)
                genes[i] = source.genes[i].Clone();
        }

Same methods

GEPChromosome::GEPChromosome ( IGPGene ancestor, int headLength ) : System