public void TestDepth()
        {
            EncogProgramContext context = new EncogProgramContext();
            context.DefineVariable("x");

            StandardExtensions.CreateAll(context);

            PrgGrowGenerator rnd = new PrgGrowGenerator(context, 2);
            EncogProgram prg = (EncogProgram)rnd.Generate(new EncogRandom());
            RenderCommonExpression render = new RenderCommonExpression();
        }
Beispiel #2
0
 /// <summary>
 ///     Construct the subtree mutation object.
 /// </summary>
 /// <param name="theContext">The program context.</param>
 /// <param name="theMaxDepth">The maximum depth.</param>
 public SubtreeMutation(EncogProgramContext theContext,
                        int theMaxDepth)
 {
     Generator = new PrgGrowGenerator(theContext, theMaxDepth);
     _maxDepth = theMaxDepth;
 }