Class DoubleTournament<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.spec.selection.DoubleTournament<T>
- All Implemented Interfaces:
SelectionPolicy
- Direct Known Subclasses:
ImmutableDoubleTournament
@Immutable
public abstract class DoubleTournament<T extends Comparable<T>>
extends Object
implements SelectionPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
check()
boolean
abstract Tournament
<T> static <U extends Comparable<U>>
DoubleTournament<U> of
(Tournament<U> fitnessTournament, Comparator<Individual<U>> parsimonyComparator, double parsimonyTournamentSize) abstract Comparator
<Individual<T>> abstract double
-
Constructor Details
-
DoubleTournament
public DoubleTournament()
-
-
Method Details
-
fitnessTournament
-
parsimonyComparator
-
parsimonyTournamentSize
@Parameter public abstract double parsimonyTournamentSize() -
doFitnessFirst
@Default public boolean doFitnessFirst() -
check
@Check public void check() -
of
public static <U extends Comparable<U>> DoubleTournament<U> of(Tournament<U> fitnessTournament, Comparator<Individual<U>> parsimonyComparator, double parsimonyTournamentSize)
-