Class FitnessSharing<T extends Comparable<T>>
java.lang.Object
net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharing<T>
- All Implemented Interfaces:
Function<Population<T>,
Population<T>>
- Direct Known Subclasses:
ImmutableFitnessSharing
@Immutable
public abstract class FitnessSharing<T extends Comparable<T>>
extends Object
implements Function<Population<T>,Population<T>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(Population<T> population) abstract BiFunction
<Genotype, Genotype, Double> distance()
static FitnessSharing
<Double> static FitnessSharing
<Float> ofFloatFitness
(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing) static FitnessSharing
<Double> ofStandard
(BiFunction<Genotype, Genotype, Double> distance, double sigma) static FitnessSharing
<Double> ofStandard
(BiFunction<Genotype, Genotype, Double> distance, double sigma, double alpha) abstract BiFunction
<Individual<T>, Double, T> sharing()
-
Constructor Details
-
FitnessSharing
public FitnessSharing()
-
-
Method Details
-
distance
-
sharing
-
scaleFitness
-
apply
- Specified by:
apply
in interfaceFunction<Population<T extends Comparable<T>>,
Population<T extends Comparable<T>>>
-
of
public static FitnessSharing<Double> of(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing) -
ofStandard
public static FitnessSharing<Double> ofStandard(BiFunction<Genotype, Genotype, Double> distance, double sigma) -
ofStandard
public static FitnessSharing<Double> ofStandard(BiFunction<Genotype, Genotype, Double> distance, double sigma, double alpha) -
ofFloatFitness
public static FitnessSharing<Float> ofFloatFitness(BiFunction<Genotype, Genotype, Double> distance, Function<Double, Double> sharing)
-