|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.udo.cs.yale.operator.features.weighting.VarianceAdaption
public class VarianceAdaption
Implements the 1/5-Rule for dynamic parameter adaption of the variance of a
WeightingMutation.
| Field Summary | |
|---|---|
private int |
intervalSize
The interval size in which the new variance is calculated. |
private java.util.LinkedList<java.lang.Boolean> |
successList
Remember for all positions if an improval was found. |
private WeightingMutation |
weightingMutation
The weighting mutation. |
| Constructor Summary | |
|---|---|
VarianceAdaption(WeightingMutation weightingMutation,
int intervalSize)
The interval size should be as big as the changeable components, i.e. the number of attributes. |
|
| Method Summary | |
|---|---|
void |
operate(Population population)
Modifies the population. |
boolean |
performOperation(int generation)
The default implementation returns true for every generation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private WeightingMutation weightingMutation
private int intervalSize
private java.util.LinkedList<java.lang.Boolean> successList
| Constructor Detail |
|---|
public VarianceAdaption(WeightingMutation weightingMutation,
int intervalSize)
| Method Detail |
|---|
public boolean performOperation(int generation)
performOperation in interface PopulationOperatorpublic void operate(Population population)
PopulationOperator
operate in interface PopulationOperator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||