public class GenePlacementLeftRightAlignedDrop extends java.lang.Object implements GenePlacement
Constructor and Description |
---|
GenePlacementLeftRightAlignedDrop(int placementWidth,
int chromosomeSize,
PlacementNodeProxy[] nodeProxies) |
Modifier and Type | Method and Description |
---|---|
static void |
generateGenePos2IndexMapping(int[] index2GenePositionInChromosome,
int[] returnValueGenerateGenePos2IndexMapping)
As the chromosome stores the position of a given index in an array in
index order this method converts it into an array in gene position order
pointing to the indexes.
|
void |
placeChromosome(Chromosome chToPlace) |
public GenePlacementLeftRightAlignedDrop(int placementWidth, int chromosomeSize, PlacementNodeProxy[] nodeProxies)
public void placeChromosome(Chromosome chToPlace)
placeChromosome
in interface GenePlacement
public static void generateGenePos2IndexMapping(int[] index2GenePositionInChromosome, int[] returnValueGenerateGenePos2IndexMapping)
index2GenePositionInChromosome
- Array in index order. (first entry is position of node with
index 0)returnValueGenerateGenePos2IndexMapping
- Reference to the array to store the return value. The gene
position to index map.