/// <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; }
/// <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; }