Ejemplo n.º 1
0
        protected override IPhenotype CreateRandomPhenotype()
        {
            StringBuilder sb = new StringBuilder();

            for (int i = 0; i < RNG.Next(1, 10); i++)
            {
                sb.Append((char)RNG.Next(32, 122));
            }
            HammingPhenotype p = new HammingPhenotype(new StringGenotype(sb.ToString()));

            return(p);
        }
Ejemplo n.º 2
0
        protected override IPhenotype CreatePhenotype(IGenotype genotype)
        {
            var phenotype = new HammingPhenotype(genotype);

            return(phenotype);
        }