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)
NodeSelectorFactoryNodeSelector that selects from the specified candidates.getSelector in interface NodeSelectorFactorycandidates - a list of RankedCandidate instances the returned selector should select fromNodeSelector that selects from candidatesOakGP Genetic Programming Framework