|
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.Int.IntegerMutator
org.evolvica.core.mutate.Int.StepMutator
Mutation of an integer number with a maximal stepsize.
This operator will add a random integer number within the range from 0 to a given integer number.
The given number can be either positive or negative.
The mutated value = value + random( 0, stepSize )
| Field Summary | |
protected int |
stepSize
Mutation step size. |
| 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(int stepSize)
Constructor with mutation step size. |
|
| Method Summary | |
int |
getStepSize()
Returns the step size. |
int |
mutate(int value)
Mutates an integer value. |
void |
setStepSize(int i)
Sets a new value for the step size. |
| Methods inherited from class org.evolvica.core.mutate.Int.IntegerMutator |
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 int stepSize
| Constructor Detail |
public StepMutator()
public StepMutator(int stepSize)
stepSize - mutation step size| Method Detail |
public int mutate(int value)
IntegerMutator
mutate in class IntegerMutatorvalue - the value to be mutated
IntegerMutator.mutate(int)public int getStepSize()
public void setStepSize(int 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 | ||||||||||