org.processmining.mining.geneticmining.selection.duplicates
Class DTTournamentSelection

java.lang.Object
  extended by org.processmining.mining.geneticmining.selection.duplicates.DTTournamentSelection
All Implemented Interfaces:
SelectionMethod

public class DTTournamentSelection
extends java.lang.Object
implements SelectionMethod

Title:

Description:

Copyright: Copyright (c) 2004

Company:

Version:
1.0
Author:
not attributable

Constructor Summary
DTTournamentSelection(java.util.Random gen)
          Uses a threshold of 0.75.
 
Method Summary
 HeuristicsNet[] select(HeuristicsNet[] population)
          This methods randomly selects two individuals (in population) to play the tournament.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTTournamentSelection

public DTTournamentSelection(java.util.Random gen)
Uses a threshold of 0.75. So, the fittest individual is selected in 75% of the cases.

Method Detail

select

public HeuristicsNet[] select(HeuristicsNet[] population)
This methods randomly selects two individuals (in population) to play the tournament. The fittest of these two individuals is returned in threshold% of the cases.

Specified by:
select in interface SelectionMethod
Parameters:
population - Array of individuals to take part in the selection
Returns:
An array containing the selected individual.