FitnessSharing.java

1
package net.bmahe.genetics4j.core.postevaluationprocess;
2
3
import java.util.ArrayList;
4
import java.util.List;
5
import java.util.Objects;
6
import java.util.function.BiFunction;
7
import java.util.function.Function;
8
9
import org.apache.commons.lang3.Validate;
10
import org.immutables.value.Value;
11
12
import net.bmahe.genetics4j.core.Genotype;
13
import net.bmahe.genetics4j.core.Individual;
14
import net.bmahe.genetics4j.core.Population;
15
import net.bmahe.genetics4j.core.spec.PostEvaluationProcessor;
16
17
@Value.Immutable
18
public abstract class FitnessSharing<T extends Comparable<T>> implements PostEvaluationProcessor<T> {
19
20
	@Value.Parameter
21
	public abstract BiFunction<Genotype, Genotype, Double> distance();
22
23
	@Value.Parameter
24
	public abstract Function<Double, Double> sharing();
25
26
	@Value.Parameter
27
	public abstract BiFunction<Individual<T>, Double, T> scaleFitness();
28
29
	@Override
30
	public Population<T> apply(final long generation, final Population<T> population) {
31
		Validate.isTrue(generation >= 0);
32
		Objects.requireNonNull(population);
33
34 4 1. apply : removed conditional - replaced equality check with false → SURVIVED
2. apply : removed call to net/bmahe/genetics4j/core/Population::isEmpty → SURVIVED
3. apply : negated conditional → KILLED
4. apply : removed conditional - replaced equality check with true → KILLED
		if (population.isEmpty()) {
35 1 1. apply : replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::apply → NO_COVERAGE
			return population;
36
		}
37
38 1 1. apply : removed call to java/util/ArrayList::<init> → KILLED
		final List<T> newFitness = new ArrayList<>();
39 6 1. apply : Substituted 0 with 1 → KILLED
2. apply : removed conditional - replaced comparison check with true → KILLED
3. apply : removed call to net/bmahe/genetics4j/core/Population::size → KILLED
4. apply : changed conditional boundary → KILLED
5. apply : negated conditional → KILLED
6. apply : removed conditional - replaced comparison check with false → KILLED
		for (int i = 0; i < population.size(); i++) {
40 1 1. apply : removed call to net/bmahe/genetics4j/core/Population::getGenotype → KILLED
			final Genotype genotypeI = population.getGenotype(i);
41 1 1. apply : removed call to net/bmahe/genetics4j/core/Population::getIndividual → KILLED
			final Individual<T> individual = population.getIndividual(i);
42
43 1 1. apply : Substituted 0.0 with 1.0 → KILLED
			double sumSharing = 0.0d;
44 6 1. apply : removed call to net/bmahe/genetics4j/core/Population::size → KILLED
2. apply : changed conditional boundary → KILLED
3. apply : Substituted 0 with 1 → KILLED
4. apply : negated conditional → KILLED
5. apply : removed conditional - replaced comparison check with true → KILLED
6. apply : removed conditional - replaced comparison check with false → KILLED
			for (int j = 0; j < population.size(); j++) {
45 1 1. apply : removed call to net/bmahe/genetics4j/core/Population::getGenotype → KILLED
				final Genotype genotypeJ = population.getGenotype(j);
46
47 4 1. apply : removed call to java/lang/Double::doubleValue → SURVIVED
2. apply : replaced call to java/util/function/BiFunction::apply with argument → KILLED
3. apply : removed call to java/util/function/BiFunction::apply → KILLED
4. apply : removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::distance → KILLED
				final double distance = distance().apply(genotypeI, genotypeJ);
48 5 1. apply : removed call to java/lang/Double::doubleValue → KILLED
2. apply : removed call to java/lang/Double::valueOf → KILLED
3. apply : removed call to java/util/function/Function::apply → KILLED
4. apply : removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::sharing → KILLED
5. apply : replaced call to java/util/function/Function::apply with argument → KILLED
				final double sharing = sharing().apply(distance);
49 1 1. apply : Replaced double addition with subtraction → KILLED
				sumSharing += sharing;
50
			}
51
52 4 1. apply : removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::scaleFitness → KILLED
2. apply : replaced call to java/util/function/BiFunction::apply with argument → KILLED
3. apply : removed call to java/lang/Double::valueOf → KILLED
4. apply : removed call to java/util/function/BiFunction::apply → KILLED
			final T newFitnessI = scaleFitness().apply(individual, sumSharing);
53 1 1. apply : removed call to java/util/List::add → KILLED
			newFitness.add(newFitnessI);
54
		}
55
56 3 1. apply : removed call to net/bmahe/genetics4j/core/Population::of → KILLED
2. apply : removed call to net/bmahe/genetics4j/core/Population::getAllGenotypes → KILLED
3. apply : replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::apply → KILLED
		return Population.<T>of(population.getAllGenotypes(), newFitness);
57
	}
58
59
	public static FitnessSharing<Double> of(final BiFunction<Genotype, Genotype, Double> distance,
60
			final Function<Double, Double> sharing) {
61 1 1. of : replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::of → KILLED
		return ImmutableFitnessSharing
62 7 1. lambda$of$0 : removed call to java/lang/Double::doubleValue → KILLED
2. lambda$of$0 : removed call to net/bmahe/genetics4j/core/Individual::fitness → KILLED
3. lambda$of$0 : removed call to java/lang/Double::valueOf → KILLED
4. lambda$of$0 : replaced Double return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$of$0 → KILLED
5. of : removed call to net/bmahe/genetics4j/core/postevaluationprocess/ImmutableFitnessSharing::of → KILLED
6. lambda$of$0 : Replaced double division with multiplication → KILLED
7. lambda$of$0 : removed call to java/lang/Double::doubleValue → KILLED
				.of(distance, sharing, (individual, sumSharing) -> individual.fitness() / sumSharing);
63
	}
64
65
	public static FitnessSharing<Double> ofStandard(final BiFunction<Genotype, Genotype, Double> distance,
66
			final double sigma) {
67 2 1. ofStandard : replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::ofStandard → KILLED
2. ofStandard : removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::of → KILLED
		return FitnessSharing.of(distance, (d) -> {
68 11 1. lambda$ofStandard$1 : changed conditional boundary → SURVIVED
2. lambda$ofStandard$1 : removed call to java/lang/Double::doubleValue → SURVIVED
3. lambda$ofStandard$1 : removed call to java/lang/Double::doubleValue → SURVIVED
4. lambda$ofStandard$1 : removed conditional - replaced comparison check with true → SURVIVED
5. lambda$ofStandard$1 : removed conditional - replaced comparison check with false → SURVIVED
6. lambda$ofStandard$1 : removed conditional - replaced comparison check with true → KILLED
7. lambda$ofStandard$1 : negated conditional → KILLED
8. lambda$ofStandard$1 : Substituted 0.0 with 1.0 → KILLED
9. lambda$ofStandard$1 : changed conditional boundary → KILLED
10. lambda$ofStandard$1 : removed conditional - replaced comparison check with false → KILLED
11. lambda$ofStandard$1 : negated conditional → KILLED
			if (d < 0.0 || d > sigma) {
69 2 1. lambda$ofStandard$1 : removed call to java/lang/Double::valueOf → NO_COVERAGE
2. lambda$ofStandard$1 : Substituted 0.0 with 1.0 → NO_COVERAGE
				return 0.0;
70
			}
71
72 6 1. lambda$ofStandard$1 : removed call to java/lang/Double::doubleValue → SURVIVED
2. lambda$ofStandard$1 : Replaced double division with multiplication → SURVIVED
3. lambda$ofStandard$1 : Replaced double subtraction with addition → SURVIVED
4. lambda$ofStandard$1 : replaced Double return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$ofStandard$1 → KILLED
5. lambda$ofStandard$1 : Substituted 1.0 with 2.0 → KILLED
6. lambda$ofStandard$1 : removed call to java/lang/Double::valueOf → KILLED
			return 1 - d / sigma;
73
		});
74
	}
75
76
	public static FitnessSharing<Double> ofStandard(final BiFunction<Genotype, Genotype, Double> distance,
77
			final double sigma, final double alpha) {
78 2 1. ofStandard : replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::ofStandard → NO_COVERAGE
2. ofStandard : removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::of → NO_COVERAGE
		return FitnessSharing.of(distance, (d) -> {
79 11 1. lambda$ofStandard$2 : removed call to java/lang/Double::doubleValue → NO_COVERAGE
2. lambda$ofStandard$2 : negated conditional → NO_COVERAGE
3. lambda$ofStandard$2 : removed conditional - replaced comparison check with true → NO_COVERAGE
4. lambda$ofStandard$2 : negated conditional → NO_COVERAGE
5. lambda$ofStandard$2 : removed conditional - replaced comparison check with true → NO_COVERAGE
6. lambda$ofStandard$2 : removed conditional - replaced comparison check with false → NO_COVERAGE
7. lambda$ofStandard$2 : changed conditional boundary → NO_COVERAGE
8. lambda$ofStandard$2 : removed call to java/lang/Double::doubleValue → NO_COVERAGE
9. lambda$ofStandard$2 : Substituted 0.0 with 1.0 → NO_COVERAGE
10. lambda$ofStandard$2 : changed conditional boundary → NO_COVERAGE
11. lambda$ofStandard$2 : removed conditional - replaced comparison check with false → NO_COVERAGE
			if (d < 0.0 || d > sigma) {
80 2 1. lambda$ofStandard$2 : removed call to java/lang/Double::valueOf → NO_COVERAGE
2. lambda$ofStandard$2 : Substituted 0.0 with 1.0 → NO_COVERAGE
				return 0.0;
81
			}
82
83 8 1. lambda$ofStandard$2 : replaced call to java/lang/Math::pow with argument → NO_COVERAGE
2. lambda$ofStandard$2 : removed call to java/lang/Math::pow → NO_COVERAGE
3. lambda$ofStandard$2 : replaced Double return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$ofStandard$2 → NO_COVERAGE
4. lambda$ofStandard$2 : removed call to java/lang/Double::valueOf → NO_COVERAGE
5. lambda$ofStandard$2 : Replaced double subtraction with addition → NO_COVERAGE
6. lambda$ofStandard$2 : Substituted 1.0 with 2.0 → NO_COVERAGE
7. lambda$ofStandard$2 : Replaced double division with multiplication → NO_COVERAGE
8. lambda$ofStandard$2 : removed call to java/lang/Double::doubleValue → NO_COVERAGE
			return 1 - Math.pow(d / sigma, alpha);
84
		});
85
	}
86
87
	public static FitnessSharing<Float> ofFloatFitness(final BiFunction<Genotype, Genotype, Double> distance,
88
			final Function<Double, Double> sharing) {
89 1 1. ofFloatFitness : replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::ofFloatFitness → NO_COVERAGE
		return ImmutableFitnessSharing
90 7 1. ofFloatFitness : removed call to net/bmahe/genetics4j/core/postevaluationprocess/ImmutableFitnessSharing::of → NO_COVERAGE
2. lambda$ofFloatFitness$3 : removed call to java/lang/Double::doubleValue → NO_COVERAGE
3. lambda$ofFloatFitness$3 : Replaced double division with multiplication → NO_COVERAGE
4. lambda$ofFloatFitness$3 : removed call to java/lang/Float::floatValue → NO_COVERAGE
5. lambda$ofFloatFitness$3 : removed call to java/lang/Float::valueOf → NO_COVERAGE
6. lambda$ofFloatFitness$3 : removed call to net/bmahe/genetics4j/core/Individual::fitness → NO_COVERAGE
7. lambda$ofFloatFitness$3 : replaced Float return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$ofFloatFitness$3 → NO_COVERAGE
				.of(distance, sharing, (individual, sumSharing) -> (float) (individual.fitness() / sumSharing));
91
	}
92
}

Mutations

34

1.1
Location : apply
Killed by : none
removed conditional - replaced equality check with false → SURVIVED
Covering tests

2.2
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
negated conditional → KILLED

3.3
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed conditional - replaced equality check with true → KILLED

4.4
Location : apply
Killed by : none
removed call to net/bmahe/genetics4j/core/Population::isEmpty → SURVIVED Covering tests

35

1.1
Location : apply
Killed by : none
replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::apply → NO_COVERAGE

38

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/util/ArrayList::<init> → KILLED

39

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
Substituted 0 with 1 → KILLED

2.2
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed conditional - replaced comparison check with true → KILLED

3.3
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Population::size → KILLED

4.4
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
changed conditional boundary → KILLED

5.5
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
negated conditional → KILLED

6.6
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed conditional - replaced comparison check with false → KILLED

40

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Population::getGenotype → KILLED

41

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Population::getIndividual → KILLED

43

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
Substituted 0.0 with 1.0 → KILLED

44

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Population::size → KILLED

2.2
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
changed conditional boundary → KILLED

3.3
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
Substituted 0 with 1 → KILLED

4.4
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
negated conditional → KILLED

5.5
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed conditional - replaced comparison check with true → KILLED

6.6
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed conditional - replaced comparison check with false → KILLED

45

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Population::getGenotype → KILLED

47

1.1
Location : apply
Killed by : none
removed call to java/lang/Double::doubleValue → SURVIVED
Covering tests

2.2
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced call to java/util/function/BiFunction::apply with argument → KILLED

3.3
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/util/function/BiFunction::apply → KILLED

4.4
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::distance → KILLED

48

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/lang/Double::doubleValue → KILLED

2.2
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/lang/Double::valueOf → KILLED

3.3
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/util/function/Function::apply → KILLED

4.4
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::sharing → KILLED

5.5
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced call to java/util/function/Function::apply with argument → KILLED

49

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
Replaced double addition with subtraction → KILLED

52

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::scaleFitness → KILLED

2.2
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced call to java/util/function/BiFunction::apply with argument → KILLED

3.3
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/lang/Double::valueOf → KILLED

4.4
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/util/function/BiFunction::apply → KILLED

53

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/util/List::add → KILLED

56

1.1
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Population::of → KILLED

2.2
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Population::getAllGenotypes → KILLED

3.3
Location : apply
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::apply → KILLED

61

1.1
Location : of
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::of → KILLED

62

1.1
Location : lambda$of$0
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/lang/Double::doubleValue → KILLED

2.2
Location : lambda$of$0
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/Individual::fitness → KILLED

3.3
Location : lambda$of$0
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/lang/Double::valueOf → KILLED

4.4
Location : lambda$of$0
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced Double return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$of$0 → KILLED

5.5
Location : of
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/postevaluationprocess/ImmutableFitnessSharing::of → KILLED

6.6
Location : lambda$of$0
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
Replaced double division with multiplication → KILLED

7.7
Location : lambda$of$0
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/lang/Double::doubleValue → KILLED

67

1.1
Location : ofStandard
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::ofStandard → KILLED

2.2
Location : ofStandard
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::of → KILLED

68

1.1
Location : lambda$ofStandard$1
Killed by : none
changed conditional boundary → SURVIVED
Covering tests

2.2
Location : lambda$ofStandard$1
Killed by : none
removed call to java/lang/Double::doubleValue → SURVIVED Covering tests

3.3
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed conditional - replaced comparison check with true → KILLED

4.4
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
negated conditional → KILLED

5.5
Location : lambda$ofStandard$1
Killed by : none
removed call to java/lang/Double::doubleValue → SURVIVED Covering tests

6.6
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
Substituted 0.0 with 1.0 → KILLED

7.7
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
changed conditional boundary → KILLED

8.8
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed conditional - replaced comparison check with false → KILLED

9.9
Location : lambda$ofStandard$1
Killed by : none
removed conditional - replaced comparison check with true → SURVIVED Covering tests

10.10
Location : lambda$ofStandard$1
Killed by : none
removed conditional - replaced comparison check with false → SURVIVED Covering tests

11.11
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
negated conditional → KILLED

69

1.1
Location : lambda$ofStandard$1
Killed by : none
removed call to java/lang/Double::valueOf → NO_COVERAGE

2.2
Location : lambda$ofStandard$1
Killed by : none
Substituted 0.0 with 1.0 → NO_COVERAGE

72

1.1
Location : lambda$ofStandard$1
Killed by : none
removed call to java/lang/Double::doubleValue → SURVIVED
Covering tests

2.2
Location : lambda$ofStandard$1
Killed by : none
Replaced double division with multiplication → SURVIVED Covering tests

3.3
Location : lambda$ofStandard$1
Killed by : none
Replaced double subtraction with addition → SURVIVED Covering tests

4.4
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
replaced Double return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$ofStandard$1 → KILLED

5.5
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
Substituted 1.0 with 2.0 → KILLED

6.6
Location : lambda$ofStandard$1
Killed by : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
removed call to java/lang/Double::valueOf → KILLED

78

1.1
Location : ofStandard
Killed by : none
replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::ofStandard → NO_COVERAGE

2.2
Location : ofStandard
Killed by : none
removed call to net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::of → NO_COVERAGE

79

1.1
Location : lambda$ofStandard$2
Killed by : none
removed call to java/lang/Double::doubleValue → NO_COVERAGE

2.2
Location : lambda$ofStandard$2
Killed by : none
negated conditional → NO_COVERAGE

3.3
Location : lambda$ofStandard$2
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

4.4
Location : lambda$ofStandard$2
Killed by : none
negated conditional → NO_COVERAGE

5.5
Location : lambda$ofStandard$2
Killed by : none
removed conditional - replaced comparison check with true → NO_COVERAGE

6.6
Location : lambda$ofStandard$2
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

7.7
Location : lambda$ofStandard$2
Killed by : none
changed conditional boundary → NO_COVERAGE

8.8
Location : lambda$ofStandard$2
Killed by : none
removed call to java/lang/Double::doubleValue → NO_COVERAGE

9.9
Location : lambda$ofStandard$2
Killed by : none
Substituted 0.0 with 1.0 → NO_COVERAGE

10.10
Location : lambda$ofStandard$2
Killed by : none
changed conditional boundary → NO_COVERAGE

11.11
Location : lambda$ofStandard$2
Killed by : none
removed conditional - replaced comparison check with false → NO_COVERAGE

80

1.1
Location : lambda$ofStandard$2
Killed by : none
removed call to java/lang/Double::valueOf → NO_COVERAGE

2.2
Location : lambda$ofStandard$2
Killed by : none
Substituted 0.0 with 1.0 → NO_COVERAGE

83

1.1
Location : lambda$ofStandard$2
Killed by : none
replaced call to java/lang/Math::pow with argument → NO_COVERAGE

2.2
Location : lambda$ofStandard$2
Killed by : none
removed call to java/lang/Math::pow → NO_COVERAGE

3.3
Location : lambda$ofStandard$2
Killed by : none
replaced Double return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$ofStandard$2 → NO_COVERAGE

4.4
Location : lambda$ofStandard$2
Killed by : none
removed call to java/lang/Double::valueOf → NO_COVERAGE

5.5
Location : lambda$ofStandard$2
Killed by : none
Replaced double subtraction with addition → NO_COVERAGE

6.6
Location : lambda$ofStandard$2
Killed by : none
Substituted 1.0 with 2.0 → NO_COVERAGE

7.7
Location : lambda$ofStandard$2
Killed by : none
Replaced double division with multiplication → NO_COVERAGE

8.8
Location : lambda$ofStandard$2
Killed by : none
removed call to java/lang/Double::doubleValue → NO_COVERAGE

89

1.1
Location : ofFloatFitness
Killed by : none
replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::ofFloatFitness → NO_COVERAGE

90

1.1
Location : ofFloatFitness
Killed by : none
removed call to net/bmahe/genetics4j/core/postevaluationprocess/ImmutableFitnessSharing::of → NO_COVERAGE

2.2
Location : lambda$ofFloatFitness$3
Killed by : none
removed call to java/lang/Double::doubleValue → NO_COVERAGE

3.3
Location : lambda$ofFloatFitness$3
Killed by : none
Replaced double division with multiplication → NO_COVERAGE

4.4
Location : lambda$ofFloatFitness$3
Killed by : none
removed call to java/lang/Float::floatValue → NO_COVERAGE

5.5
Location : lambda$ofFloatFitness$3
Killed by : none
removed call to java/lang/Float::valueOf → NO_COVERAGE

6.6
Location : lambda$ofFloatFitness$3
Killed by : none
removed call to net/bmahe/genetics4j/core/Individual::fitness → NO_COVERAGE

7.7
Location : lambda$ofFloatFitness$3
Killed by : none
replaced Float return value with 0 for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::lambda$ofFloatFitness$3 → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 1.20.3