org.jgap.gp
Interface IMutateable
-
- All Known Implementing Classes:
- Add, And, AndD, CountMatrix, Divide, DivideIntD, DivideProtected, False, Multiply, Or, OrD, ReplaceInMatrix, SubProgram, Subtract, Terminal, True
public interface IMutateableInterface for GP commands that are mutateable.- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.StringCVS_REVISIONString containing the CVS revision.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description CommandGeneapplyMutation(int a_index, double a_percentage)Mutates a CommandGene.
-
-
-
Field Detail
-
CVS_REVISION
static final java.lang.String CVS_REVISION
String containing the CVS revision. Read out via reflection!- See Also:
- Constant Field Values
-
-
Method Detail
-
applyMutation
CommandGene applyMutation(int a_index, double a_percentage) throws InvalidConfigurationException
Mutates a CommandGene.- Parameters:
a_index- references the part of a multipart object, normally not relevanta_percentage- the mutation rate (0.0 to 1.0)- Returns:
- the mutant
- Throws:
InvalidConfigurationException- Since:
- 3.0
-
-
DMelt 3.0 © DataMelt by jWork.ORG