com.groovyj.jgprog
Class FitnessProportionateSelection

java.lang.Object
  |
  +--com.groovyj.jgprog.SelectionMethod
        |
        +--com.groovyj.jgprog.FitnessProportionateSelection
All Implemented Interfaces:
java.io.Serializable

public class FitnessProportionateSelection
extends SelectionMethod
implements java.io.Serializable

Selects individuals proportionally according to their adjusted fitness.

Copyright (c) 2000 Robert Baruch. This code is released under the GNU General Public License (GPL).

Version:
$Id: FitnessProportionateSelection.java,v 1.3 2000/10/12 15:22:55 groovyjava Exp $
Author:
Robert Baruch (jgprog@sourceforge.net)
See Also:
Serialized Form

Constructor Summary
FitnessProportionateSelection()
           
 
Method Summary
 Individual select(World world)
          Select an individual based on some method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitnessProportionateSelection

public FitnessProportionateSelection()
Method Detail

select

public Individual select(World world)
Description copied from class: SelectionMethod
Select an individual based on some method.
Overrides:
select in class SelectionMethod
Following copied from class: com.groovyj.jgprog.SelectionMethod
Parameters:
random - the random number generator to use
world - the World for the run
Returns:
the individual chosen from the world's population