|
Evolvica Core API Version 0.6.3 Last Modified: July 20 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.recombine.AbstractRecombinator
org.evolvica.core.recombine.binary.BinaryRecombinator
org.evolvica.core.recombine.binary.MultipointCrossover
Multipoint Crossover for binary strings. This operator produces two children from two parents. For the number of intersections na obtains: 0 < na < width( BinaryString ).
| Field Summary | |
protected int |
intersections
Number of intersections of the binary string. |
protected java.util.Random |
random
Random generator. |
| Fields inherited from class org.evolvica.core.recombine.AbstractRecombinator |
builder |
| Fields inherited from class org.evolvica.engine.AbstractOperator |
descriptor, element, id, name |
| Constructor Summary | |
MultipointCrossover()
Constructor. |
|
MultipointCrossover(int intersections)
Constructor. |
|
| Method Summary | |
int |
getProducedChildren()
Return the number of produced children. |
int |
getRequiredParents()
Returns the number of required parents for a valid recombination. |
protected BitVector[] |
recombine(BitVector[] parents)
Recombines two bitsets. |
| Methods inherited from class org.evolvica.core.recombine.binary.BinaryRecombinator |
recombine |
| Methods inherited from class org.evolvica.core.recombine.AbstractRecombinator |
getBuilder, process, setBuilder |
| 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.util.Random random
protected int intersections
| Constructor Detail |
public MultipointCrossover()
public MultipointCrossover(int intersections)
intersections - number of intersections| Method Detail |
protected BitVector[] recombine(BitVector[] parents)
BinaryRecombinator
recombine in class BinaryRecombinatorparents - parent bitsets
BinaryRecombinator.recombine(org.evolvica.util.BitVector[])public int getProducedChildren()
AbstractRecombinator
getProducedChildren in class AbstractRecombinatorAbstractRecombinator.getProducedChildren()public int getRequiredParents()
AbstractRecombinator
getRequiredParents in class AbstractRecombinatorAbstractRecombinator.getRequiredParents()
|
Evolvica Core API Version 0.6.3 Last Modified: July 20 2004 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||