|
Evolvica Core API Version 0.6.2 Last Modified: June 29 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.RelativeFloatMutator
Mutation of a float number with a mutation range (percentage). This operator will add a random float number within the given range. Example: if the value is 10.0 and the range is 0.1 (10%) the mutated value will be between 9.0 and 11.0.
Field Summary | |
protected float |
range
Mutation range. |
Fields inherited from class org.evolvica.core.mutate.AbstractMutator |
propability |
Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
Constructor Summary | |
RelativeFloatMutator()
Constructor. |
|
RelativeFloatMutator(float range)
Constructor. |
Method Summary | |
float |
getRange()
|
float |
mutate(float value)
Mutates a float value. |
void |
setRange(float range)
Sets the range. |
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 range
Constructor Detail |
public RelativeFloatMutator()
public RelativeFloatMutator(float range)
range
- rangeMethod Detail |
public float mutate(float value)
FloatMutator
mutate
in class FloatMutator
value
- the value to be mutated
FloatMutator.mutate(float)
public float getRange()
public void setRange(float range)
range
- The range to set
|
Evolvica Core API Version 0.6.2 Last Modified: June 29 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |