|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.BaseGeneticOperator
org.jgap.impl.GaussianMutationOperator
public class GaussianMutationOperator
This genetic operator performs Gaussian mutation across all genes in a Chromosome.
Field Summary |
---|
Fields inherited from class org.jgap.BaseGeneticOperator |
---|
m_monitor, m_monitorActive |
Constructor Summary | |
---|---|
GaussianMutationOperator()
Constructs a GaussianMutationOperator with a default deviation of 0.05. |
|
GaussianMutationOperator(Configuration a_config)
Constructs a GaussianMutationOperator with a default deviation of 0.05. |
|
GaussianMutationOperator(Configuration a_configuration,
double a_deviation)
Constructs a GaussianMutationOperator with the given deviation. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object a_other)
Compares the given GeneticOperator to this GeneticOperator. |
double |
getDeviation()
|
void |
operate(Population a_population,
java.util.List a_candidateChromosomes)
Executes the operation. |
Methods inherited from class org.jgap.BaseGeneticOperator |
---|
equals, getConfiguration |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GaussianMutationOperator() throws InvalidConfigurationException
InvalidConfigurationException
public GaussianMutationOperator(Configuration a_config) throws InvalidConfigurationException
a_config
- the configuration to use
InvalidConfigurationException
public GaussianMutationOperator(Configuration a_configuration, double a_deviation) throws InvalidConfigurationException
a_configuration
- the configuration to usea_deviation
- sic
InvalidConfigurationException
Method Detail |
---|
public void operate(Population a_population, java.util.List a_candidateChromosomes)
a_population
- containing chromosomes to be mutateda_candidateChromosomes
- resulting chromosomespublic int compareTo(java.lang.Object a_other)
a_other
- the instance against which to compare this instance
public double getDeviation()
|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |