org.processmining.mining.geneticmining.util
Class MapIdenticalIndividuals

java.lang.Object
  extended by org.processmining.mining.geneticmining.util.MapIdenticalIndividuals

public class MapIdenticalIndividuals
extends java.lang.Object

Title:

Description: This class maps individuals that are equal. So, if individual n is equal to individual n-2 and n-3, the mapping for individual n returns individual n-3. These mapping can be used to improve performance. For instance, if individual n-3 has a fitness to a given log, we don't need to recalculate it to individual n. So, we save time when assigning the fitness.

Version:
1.0
Author:
Ana Karla A. de Medeiros.

Constructor Summary
MapIdenticalIndividuals(HeuristicsNet[] population)
           
 
Method Summary
 int getMap(int individual)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapIdenticalIndividuals

public MapIdenticalIndividuals(HeuristicsNet[] population)
Method Detail

getMap

public final int getMap(int individual)
Parameters:
individual - index of the individual to find mapping.
Returns:
the index of the first individual in the population that is equal to the individual given as parameter.