Class TarpeianMethod
java.lang.Object
net.bmahe.genetics4j.gp.postevaluationprocess.TarpeianMethod
- All Implemented Interfaces:
Function<Population<Double>,
Population<Double>>
- Direct Known Subclasses:
ImmutableTarpeianMethod
@Immutable
public abstract class TarpeianMethod
extends Object
implements Function<Population<Double>,Population<Double>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Population<Double> population) protected void
check()
abstract double
newValue()
static TarpeianMethod
of
(RandomGenerator randomGenerator, Function<Genotype, Integer> sizeFunction, double probability, double newValue) static TarpeianMethod
ofTreeChromosome
(RandomGenerator randomGenerator, int chromosomeIndex, double probability, double newValue) abstract double
abstract RandomGenerator
-
Constructor Details
-
TarpeianMethod
public TarpeianMethod()
-
-
Method Details
-
randomGenerator
-
sizeFunction
-
probability
@Parameter public abstract double probability() -
newValue
@Parameter public abstract double newValue() -
check
@Check protected void check() -
apply
- Specified by:
apply
in interfaceFunction<Population<Double>,
Population<Double>>
-
of
public static TarpeianMethod of(RandomGenerator randomGenerator, Function<Genotype, Integer> sizeFunction, double probability, double newValue) -
ofTreeChromosome
public static TarpeianMethod ofTreeChromosome(RandomGenerator randomGenerator, int chromosomeIndex, double probability, double newValue)
-