示例#1
0
        protected override IPhenotype CreateRandomPhenotype()
        {
            var g = new BinaryGenotype(_bitcount);

            for (int i = 0; i < _bitcount; i++)
            {
                g.Bits[i] = RNG.NextBool();
            }
            var p = new LOLZPhenotype(g, _z);

            return(p);
        }
示例#2
0
        protected override IPhenotype CreatePhenotype(IGenotype genotype)
        {
            var phenotype = new LOLZPhenotype(genotype, _z);

            return(phenotype);
        }