|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.prg.opp.ConstMutation
public class ConstMutation
Mutate the constant nodes of an Encog program. This mutation only changes values and does not alter the structure.
Constructor Summary | |
---|---|
ConstMutation(EncogProgramContext theContext,
double theFrequency,
double theSigma)
Construct a const mutator. |
Method Summary | |
---|---|
void |
init(EvolutionaryAlgorithm theOwner)
Called to setup the evolutionary operator. |
int |
offspringProduced()
|
int |
parentsNeeded()
|
void |
performOperation(Random rnd,
Genome[] parents,
int parentIndex,
Genome[] offspring,
int offspringIndex)
Perform the evolutionary operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConstMutation(EncogProgramContext theContext, double theFrequency, double theSigma)
theContext
- The program context.theFrequency
- The frequency of mutation.theSigma
- The sigma to use for mutation.Method Detail |
---|
public void init(EvolutionaryAlgorithm theOwner)
init
in interface EvolutionaryOperator
theOwner
- The evolutionary algorithm used with this operator.public int offspringProduced()
offspringProduced
in interface EvolutionaryOperator
public int parentsNeeded()
parentsNeeded
in interface EvolutionaryOperator
public void performOperation(Random rnd, Genome[] parents, int parentIndex, Genome[] offspring, int offspringIndex)
performOperation
in interface EvolutionaryOperator
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |