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)
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