|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.ga.watchmaker.cd.CDMutation
public class CDMutation
Mutation operator.
Constructor Summary | |
---|---|
CDMutation(double rate,
double range,
int k)
|
Method Summary | |
---|---|
java.util.List<CDRule> |
apply(java.util.List<CDRule> selectedCandidates,
java.util.Random rng)
|
protected CDRule |
mutate(CDRule rule,
java.util.Random rng)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDMutation(double rate, double range, int k)
rate
- probability of mutating a variablerange
- max step-size for each variablek
- mutation precision
See http://www.geatbx.com/docu/algindex-04.html#P659_42386 real valued mutation
for more information about the parametersMethod Detail |
---|
public java.util.List<CDRule> apply(java.util.List<CDRule> selectedCandidates, java.util.Random rng)
apply
in interface org.uncommons.watchmaker.framework.EvolutionaryOperator<CDRule>
protected CDRule mutate(CDRule rule, java.util.Random rng)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |