|
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.Double.DoubleMutator
org.evolvica.core.mutate.Double.AbsoluteRangeMutator
Mutation of a double number with a mutation range.
This operator will add a random double number within the given range.
The mutated value = value +/- random( lowerBound, upperBound )
Field Summary | |
protected double |
lowerBound
Lower mutation bound. |
protected double |
upperBound
Upper mutation bound. |
Fields inherited from class org.evolvica.core.mutate.AbstractMutator |
propability |
Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
Constructor Summary | |
AbsoluteRangeMutator()
Constructor. |
|
AbsoluteRangeMutator(double lowerBound,
double upperBound)
Constructor with mutation range. |
Method Summary | |
double |
getLowerBound()
Returns the lower bound. |
double |
getUpperBound()
Returns the upper bound. |
double |
mutate(double value)
Mutates a double value. |
void |
setLowerBound(double i)
Sets a new lower bound. |
void |
setUpperBound(double i)
Sets a new upper bound. |
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 lowerBound
protected double upperBound
Constructor Detail |
public AbsoluteRangeMutator()
public AbsoluteRangeMutator(double lowerBound, double upperBound)
lowerBound
- lower bound of mutation rangeupperBound
- upper bound of mutation rangeMethod Detail |
public double mutate(double value)
DoubleMutator
mutate
in class DoubleMutator
value
- the value to be mutated
DoubleMutator.mutate(double)
public double getLowerBound()
public double getUpperBound()
public void setLowerBound(double i)
i
- new value for the lower boundpublic void setUpperBound(double i)
i
- new value for the upper bound
|
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 |