org.processmining.mining.geneticmining.population.duplicates
Class DTGeneticMiningMatricesWithHeuristics

java.lang.Object
  extended by org.processmining.mining.geneticmining.population.duplicates.DTGeneticMiningMatricesWithHeuristics
All Implemented Interfaces:
DTGeneticMiningMatrices

public class DTGeneticMiningMatricesWithHeuristics
extends java.lang.Object
implements DTGeneticMiningMatrices

This class uses the causal matrices to set the maximum number of duplicated tasks that an individual (HeuristicsNet) can have. Basically, the number of duplicates of a task t is the minimum between the number of tasks that causally follow t and the number of tasks that are causally followed by t.

The arcs are set in the following way: Whenever a task t causally follows a tasks t', there is a 50% probability that the individual has an arc from t to t'.

NOTE: It is assumed that an artificial START task and an artificial END task were added to the log.

Version:
1.0
Author:
Ana Karla A. de Medeiros

Constructor Summary
DTGeneticMiningMatricesWithHeuristics(java.util.Random gen, LogReader logReader)
           
 
Method Summary
 cern.colt.matrix.DoubleMatrix2D getCausalMatrix()
           
 int[] getDuplicatesMapping()
          Returns the mapping from the task code in the individuals to the task code in the LogReader object that was provided to the constructor of this class.
 cern.colt.matrix.DoubleMatrix1D getEndMatrix()
           
 HNSubSet[] getReverseDuplicatesMapping()
          Returns the mapping from the task code in the LogReader object that was provided to the constructor of this class to the task code in the individuals.
 cern.colt.matrix.DoubleMatrix1D getStartMatrix()
           
 void rebuildAllMatrices()
           
 cern.colt.matrix.DoubleMatrix2D rebuildCausalMatrix()
           
 cern.colt.matrix.DoubleMatrix1D rebuildEndMatrix()
           
 cern.colt.matrix.DoubleMatrix1D rebuildStartMatrix()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTGeneticMiningMatricesWithHeuristics

public DTGeneticMiningMatricesWithHeuristics(java.util.Random gen,
                                             LogReader logReader)
Method Detail

getDuplicatesMapping

public int[] getDuplicatesMapping()
Returns the mapping from the task code in the individuals to the task code in the LogReader object that was provided to the constructor of this class.

Specified by:
getDuplicatesMapping in interface DTGeneticMiningMatrices

getReverseDuplicatesMapping

public HNSubSet[] getReverseDuplicatesMapping()
Returns the mapping from the task code in the LogReader object that was provided to the constructor of this class to the task code in the individuals.

Specified by:
getReverseDuplicatesMapping in interface DTGeneticMiningMatrices

getCausalMatrix

public cern.colt.matrix.DoubleMatrix2D getCausalMatrix()
Specified by:
getCausalMatrix in interface DTGeneticMiningMatrices

getEndMatrix

public cern.colt.matrix.DoubleMatrix1D getEndMatrix()
Specified by:
getEndMatrix in interface DTGeneticMiningMatrices

getStartMatrix

public cern.colt.matrix.DoubleMatrix1D getStartMatrix()
Specified by:
getStartMatrix in interface DTGeneticMiningMatrices

rebuildAllMatrices

public void rebuildAllMatrices()
Specified by:
rebuildAllMatrices in interface DTGeneticMiningMatrices

rebuildCausalMatrix

public cern.colt.matrix.DoubleMatrix2D rebuildCausalMatrix()
Specified by:
rebuildCausalMatrix in interface DTGeneticMiningMatrices

rebuildStartMatrix

public cern.colt.matrix.DoubleMatrix1D rebuildStartMatrix()
Specified by:
rebuildStartMatrix in interface DTGeneticMiningMatrices

rebuildEndMatrix

public cern.colt.matrix.DoubleMatrix1D rebuildEndMatrix()
Specified by:
rebuildEndMatrix in interface DTGeneticMiningMatrices