Documentation of 'Catalano.Evolutionary.Genetic.Selection.TournamentSelection' Java class
TournamentSelection
Catalano.Evolutionary.Genetic.Selection

Class TournamentSelection

  • All Implemented Interfaces:
    ISelection


    public class TournamentSelection
    extends java.lang.Object
    implements ISelection
    Tournament Selection.
    • Constructor Summary

      Constructors 
      Constructor and Description
      TournamentSelection()
      Initializes a new instance of the TournamentSelection class.
      TournamentSelection(int k)
      Initializes a new instance of the TournamentSelection class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int[] Compute(java.util.List<IChromosome> chromosomes)
      Selection operator.
      int getK()
      Get Number of individuals.
      void setK(int k)
      Set Number of individuals.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TournamentSelection

        public TournamentSelection()
        Initializes a new instance of the TournamentSelection class.
      • TournamentSelection

        public TournamentSelection(int k)
        Initializes a new instance of the TournamentSelection class.
        Parameters:
        k - Number of individuals
    • Method Detail

      • getK

        public int getK()
        Get Number of individuals.
        Returns:
        Number of indviduals.
      • setK

        public void setK(int k)
        Set Number of individuals.
        Parameters:
        k - Number of individuals.
      • Compute

        public int[] Compute(java.util.List<IChromosome> chromosomes)
        Description copied from interface: ISelection
        Selection operator.
        Specified by:
        Compute in interface ISelection
        Parameters:
        chromosomes - Chromosomes.
        Returns:
        Selected chromosomes.

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.