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