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 voidcheck()abstract doublenewValue()static TarpeianMethodof(RandomGenerator randomGenerator, Function<Genotype, Integer> sizeFunction, double probability, double newValue) static TarpeianMethodofTreeChromosome(RandomGenerator randomGenerator, int chromosomeIndex, double probability, double newValue) abstract doubleabstract 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:
applyin 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)
-