Class TarpeianMethod
java.lang.Object
net.bmahe.genetics4j.gp.postevaluationprocess.TarpeianMethod
- All Implemented Interfaces:
PostEvaluationProcessor<Double>
- Direct Known Subclasses:
ImmutableTarpeianMethod
@Immutable
public abstract class TarpeianMethod
extends Object
implements PostEvaluationProcessor<Double>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(long generation, 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 interfacePostEvaluationProcessor<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)
-