Interface ProportionalTournament<T extends Comparable<T>>
- All Superinterfaces:
SelectionPolicy
- All Known Implementing Classes:
ImmutableProportionalTournament
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
check()
int
static <T extends Comparable<T>>
ProportionalTournament<T> of
(int numCandidates, double proportionFirst, Comparator<Individual<T>> firstComparator, Comparator<Individual<T>> secondComparator) double
-
Method Details
-
numCandidates
@Parameter int numCandidates() -
proportionFirst
@Parameter double proportionFirst() -
firstComparator
-
secondComparator
-
check
@Check default void check() -
of
static <T extends Comparable<T>> ProportionalTournament<T> of(int numCandidates, double proportionFirst, Comparator<Individual<T>> firstComparator, Comparator<Individual<T>> secondComparator)
-