/// <inheritdoc />
        public IGenome Factor(IGenome other)
        {
            var result = new TreeGenome(_eval);

            result.Copy(other);
            return(result);
        }
 /// <inheritdoc />
 public IGenome Factor(IGenome other)
 {
     var result = new TreeGenome(_eval);
     result.Copy(other);
     return result;
 }
Beispiel #3
0
 /// <summary>
 ///     Generate a random genome.
 /// </summary>
 /// <param name="rnd">Random number generator.</param>
 /// <param name="eval">The evaluator.</param>
 /// <returns>The random genome.</returns>
 private TreeGenome RandomGenome(IGenerateRandom rnd, EvaluateExpression eval)
 {
     var result = new TreeGenome(eval);
     result.Root = eval.Grow(rnd, 5);
     return result;
 }