|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.evolvica.engine.AbstractOperator
org.evolvica.core.common.AbstractGeneticOperator
org.evolvica.core.mutate.AbstractMutator
org.evolvica.core.mutate.Double.DoubleMutator
org.evolvica.core.mutate.Double.StepMutator
Mutation of an double number with a maximal stepsize.
This operator will add a random double number within the
range from 0 to a given double number.
The given number can be either positive or negative.
The mutated value = value + random( 0, stepSize )
| Field Summary | |
protected double |
stepSize
. |
| Fields inherited from class org.evolvica.core.mutate.AbstractMutator |
propability |
| Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
| Constructor Summary | |
StepMutator()
Constructor. |
|
StepMutator(double stepSize)
Constructor with mutation step size. |
|
| Method Summary | |
double |
getStepSize()
Returns the step size. |
double |
mutate(double value)
Mutates a double value. |
void |
setStepSize(double i)
Sets a new value for the step size. |
| Methods inherited from class org.evolvica.core.mutate.Double.DoubleMutator |
mutate |
| Methods inherited from class org.evolvica.core.mutate.AbstractMutator |
getPropability, process, setPropability |
| Methods inherited from class org.evolvica.engine.AbstractOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.evolvica.engine.IOperator |
attachDescriptor, attachElement, descriptor, element, getId, getName, setId, setName |
| Field Detail |
protected double stepSize
| Constructor Detail |
public StepMutator()
public StepMutator(double stepSize)
stepSize - mutation step size| Method Detail |
public double mutate(double value)
DoubleMutator
mutate in class DoubleMutatorvalue - the value to be mutated
DoubleMutator.mutate(double)public double getStepSize()
public void setStepSize(double i)
i - new value for the step size
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||