Documentation of 'org.encog.ml.prg.opp.ConstMutation' Java class
ConstMutation
org.encog.ml.prg.opp

Class ConstMutation

  • All Implemented Interfaces:
    EvolutionaryOperator


    public class ConstMutation
    extends java.lang.Object
    implements EvolutionaryOperator
    Mutate the constant nodes of an Encog program. This mutation only changes values and does not alter the structure.
    • Constructor Detail

      • ConstMutation

        public ConstMutation(EncogProgramContext theContext,
                             double theFrequency,
                             double theSigma)
        Construct a const mutator.
        Parameters:
        theContext - The program context.
        theFrequency - The frequency of mutation.
        theSigma - The sigma to use for mutation.
    • Method Detail

      • init

        public void init(EvolutionaryAlgorithm theOwner)
        Called to setup the evolutionary operator.
        Specified by:
        init in interface EvolutionaryOperator
        Parameters:
        theOwner - The evolutionary algorithm used with this operator.
      • offspringProduced

        public int offspringProduced()
        Specified by:
        offspringProduced in interface EvolutionaryOperator
        Returns:
        The number of offspring produced by this type of crossover.
      • performOperation

        public void performOperation(java.util.Random rnd,
                                     Genome[] parents,
                                     int parentIndex,
                                     Genome[] offspring,
                                     int offspringIndex)
        Perform the evolutionary operation.
        Specified by:
        performOperation in interface EvolutionaryOperator
        Parameters:
        rnd - A random number generator.
        parents - The parents.
        parentIndex - The index into the parents array.
        offspring - The offspring.
        offspringIndex - An index into the offspring array.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.