Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.encog.ml.prg.generator
Interface PrgGenerator

All Superinterfaces:
  PopulationGenerator

All Known Implementing Classes:
  AbstractPrgGenerator, PrgFullGenerator, PrgGrowGenerator, RampedHalfAndHalf

    public interface PrgGenerator

extends PopulationGenerator

Generate a random Encog Program.

Method Summary
`ProgramNode` | `createNode(Random rnd, EncogProgram program, int depthRemaining, List<ValueType> types)` Create a random node for an Encog Program.
`int` | `getMaxGenerationErrors()`
`void` | `setMaxGenerationErrors(int maxGenerationErrors)` Set the maximum errors to allow during generation.

Methods inherited from interface org.encog.ml.ea.population.PopulationGenerator
`generate, generate`

Method Detail

### createNode

    ProgramNode createNode(Random rnd,
                           EncogProgram program,
                           int depthRemaining,
                           List<ValueType> types)

  Create a random node for an Encog Program.

  Parameters:
    `rnd` - Random number generator.
    `program` - The program that the node should be generated for.
    `depthRemaining` - The depth remaining to generate.
    `types` - The types to generate.
  Returns:
    The newly created node.

### getMaxGenerationErrors

    int getMaxGenerationErrors()

  Returns:
    The maximum number of errors to allow during generation.

### setMaxGenerationErrors

    void setMaxGenerationErrors(int maxGenerationErrors)

  Set the maximum errors to allow during generation.

  Parameters:
    `maxGenerationErrors` - The max errors.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2014. All Rights Reserved.