|
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.Int.IntegerMutator
org.evolvica.core.mutate.Int.RelativeRangeMutator
Mutation of a integer number with a mutation range.
This operator will add a random integer number within the given range relative to
the given value.
The mutated value = value + random( - value * range, + value * range ), range in percent
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 | |
RelativeRangeMutator()
Constructor. |
|
RelativeRangeMutator(float range)
Constructor with mutation range. |
Method Summary | |
float |
getRange()
Returns the mutation range. |
int |
mutate(int value)
Mutates an integer value. |
void |
setRange(float f)
Sets a new mutation range. |
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 float range
Constructor Detail |
public RelativeRangeMutator()
public RelativeRangeMutator(float range)
range
- mutation rangeMethod Detail |
public int mutate(int value)
IntegerMutator
mutate
in class IntegerMutator
value
- the value to be mutated
IntegerMutator.mutate(int)
public float getRange()
public void setRange(float f)
f
- new value for the mutation range
|
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 |