/// <summary>
        ///     Construct the ramped half-and-half generator.
        /// </summary>
        /// <param name="theContext">The context.</param>
        /// <param name="theMinDepth">The minimum depth.</param>
        /// <param name="theMaxDepth">The maximum depth.</param>
        public RampedHalfAndHalf(EncogProgramContext theContext,
                                 int theMinDepth, int theMaxDepth)
            : base(theContext, theMaxDepth)
        {
            _minDepth = theMinDepth;

            _fullGenerator = new PrgFullGenerator(theContext, theMaxDepth);
            _growGenerator = new PrgGrowGenerator(theContext, theMaxDepth);
        }
Example #2
0
        /// <summary>
        ///     Construct the ramped half-and-half generator.
        /// </summary>
        /// <param name="theContext">The context.</param>
        /// <param name="theMinDepth">The minimum depth.</param>
        /// <param name="theMaxDepth">The maximum depth.</param>
        public RampedHalfAndHalf(EncogProgramContext theContext,
                                 int theMinDepth, int theMaxDepth)
            : base(theContext, theMaxDepth)
        {
            _minDepth = theMinDepth;

            _fullGenerator = new PrgFullGenerator(theContext, theMaxDepth);
            _growGenerator = new PrgGrowGenerator(theContext, theMaxDepth);
        }