|
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.iarray.IntegerArrayMutator
org.evolvica.core.mutate.iarray.SubstitutionMutator
Substitution mutation of an array. This operator will replace random elements with elements selected randomly from a given substitution list.
Field Summary | |
protected int[] |
integerSubstitutionList
Substitution list helper. |
protected java.lang.Object[] |
substitutionList
Substitution list. |
protected int |
substNumber
Number of substitutions. |
protected float |
substPercentage
Number of substitutions (percentage). |
Fields inherited from class org.evolvica.core.mutate.AbstractMutator |
propability |
Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
Constructor Summary | |
SubstitutionMutator()
Constructor. |
|
SubstitutionMutator(float percentage,
int[] substList)
Constructor with number of clipped elements. |
|
SubstitutionMutator(int[] substList)
Constructor. |
|
SubstitutionMutator(int number,
int[] substList)
Constructor with mutation propability and number of clipped elements. |
Method Summary | |
int[] |
mutate(int[] array)
Mutates an integer array. |
protected int[] |
setupSubstArray(java.lang.Object o,
int arrayLength)
Setup substitution. |
Methods inherited from class org.evolvica.core.mutate.iarray.IntegerArrayMutator |
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 java.lang.Object[] substitutionList
protected int substNumber
protected float substPercentage
protected int[] integerSubstitutionList
Constructor Detail |
public SubstitutionMutator()
public SubstitutionMutator(int[] substList)
substList
- array with objects for substitutionpublic SubstitutionMutator(float percentage, int[] substList)
percentage
- percentage value of the number of elements to be clippedsubstList
- array with objects for substitutionpublic SubstitutionMutator(int number, int[] substList)
number
- number of elements to be clippedsubstList
- array with objects for substitutionMethod Detail |
public int[] mutate(int[] array)
IntegerArrayMutator
mutate
in class IntegerArrayMutator
array
- integer array to be mutated
IntegerArrayMutator.mutate(int[])
protected int[] setupSubstArray(java.lang.Object o, int arrayLength)
o
- objectarrayLength
- substitution array
|
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 |