public final class FitnessProportionateSelectionFactory extends Object implements NodeSelectorFactory
FitnessProportionateSelection.| Constructor and Description |
|---|
FitnessProportionateSelectionFactory(Random random)
Creates a
FitnessProportionateSelectionFactory that creates FitnessProportionateSelection instances that use the given Random. |
| Modifier and Type | Method and Description |
|---|---|
FitnessProportionateSelection |
getSelector(RankedCandidates candidates)
Returns a
NodeSelector that selects from the specified candidates. |
public FitnessProportionateSelectionFactory(Random random)
FitnessProportionateSelectionFactory that creates FitnessProportionateSelection instances that use the given Random.public FitnessProportionateSelection 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