|
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.core.population.AbstractInsertionFilter
org.evolvica.core.population.DiscreteInsertion
Discrete reinsertion.
This operator works in the same way as UniformInsertion
with the difference that discrete values for generation gap and reinsertion rate
instead of percentage values can be given.
Field Summary | |
protected int |
gapSize
Number of individuals to be deleted from the population. |
protected int |
rateSize
Number of individuals to inserted from the reinsertion pool. |
Fields inherited from class org.evolvica.core.population.AbstractInsertionFilter |
generationGap, insertionRate |
Constructor Summary | |
DiscreteInsertion()
Constructor. |
|
DiscreteInsertion(int gap,
int rate)
Constructor with insertion parameters. |
Method Summary | |
int |
getGapSize()
Gets the number of individuals to be removed. |
int |
getRateSize()
Gets the number of individuals to be inserted. |
void |
insert(IPopulation population,
IIndividualSet pool)
Inserts individuals into the given population. |
void |
setGapSize(int size)
Sets the number of individuals to be removed. |
void |
setRateSize(int size)
Sets the number of individuals to be inserted. |
Methods inherited from class org.evolvica.core.population.AbstractInsertionFilter |
generationGapSize, getGenerationGap, getInsertionRate, insertionRateSize, setGenerationGap, setInsertionRate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int gapSize
protected int rateSize
Constructor Detail |
public DiscreteInsertion()
public DiscreteInsertion(int gap, int rate)
gap
- number of individuals to be removedrate
- number of individuals to insertedMethod Detail |
public int getGapSize()
public void setGapSize(int size)
size
- number of individuals to be removedpublic void setRateSize(int size)
size
- number of individuals to be insertedpublic int getRateSize()
public void insert(IPopulation population, IIndividualSet pool)
IInsertionFilter
insert
in interface IInsertionFilter
insert
in class AbstractInsertionFilter
IInsertionFilter.insert(org.evolvica.core.population.IPopulation, org.evolvica.core.IIndividualSet)
|
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 |