public final class RankSelectionFactory extends Object implements NodeSelectorFactory
RankSelection
.Constructor and Description |
---|
RankSelectionFactory(Random random)
Creates a
RankSelectionFactory that creates RankSelection instances that use the given Random . |
Modifier and Type | Method and Description |
---|---|
RankSelection |
getSelector(RankedCandidates candidates)
Returns a
NodeSelector that selects from the specified candidates. |
public RankSelectionFactory(Random random)
RankSelectionFactory
that creates RankSelection
instances that use the given Random
.public RankSelection getSelector(RankedCandidates candidates)
NodeSelectorFactory
NodeSelector
that selects from the specified candidates.getSelector
in interface NodeSelectorFactory
candidates
- a list of RankedCandidate
instances the returned selector should select fromNodeSelector
that selects from candidates
OakGP Genetic Programming Framework