|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.udo.cs.yale.operator.features.IndividualOperator
edu.udo.cs.yale.operator.features.construction.ConstantGeneration
public class ConstantGeneration
This PopulationOperator generates new random constant attributes in an individual's example table.
Field Summary | |
---|---|
private double |
prob
The probability for generating new constants. |
private RandomGenerator |
random
|
Constructor Summary | |
---|---|
ConstantGeneration(double prob,
RandomGenerator random)
Creates a new constant generator. |
Method Summary | |
---|---|
java.util.List<Individual> |
operate(Individual individual)
Subclasses must implement this method providing a list of new individuals. |
Methods inherited from class edu.udo.cs.yale.operator.features.IndividualOperator |
---|
operate, performOperation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double prob
private RandomGenerator random
Constructor Detail |
---|
public ConstantGeneration(double prob, RandomGenerator random)
Method Detail |
---|
public java.util.List<Individual> operate(Individual individual) throws java.lang.Exception
IndividualOperator
operate
in class IndividualOperator
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |