FitnessSharing.java

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

Mutations

31

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

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

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 : net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest.[engine:junit-jupiter]/[class:net.bmahe.genetics4j.core.postevaluationprocess.FitnessSharingTest]/[method:simple()]
negated conditional → KILLED

32

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

35

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

36

1.1
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

2.2
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

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 comparison check with true → 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()]
removed conditional - replaced comparison check with false → 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 call to net/bmahe/genetics4j/core/Population::size → KILLED

37

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

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 net/bmahe/genetics4j/core/Population::getIndividual → 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()]
Substituted 0.0 with 1.0 → 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()]
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()]
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()]
negated conditional → 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 conditional - replaced comparison check with true → 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 call to net/bmahe/genetics4j/core/Population::size → 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

42

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

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/postevaluationprocess/FitnessSharing::distance → 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/util/function/BiFunction::apply → KILLED

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

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 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 net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::sharing → 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 call to java/util/function/Function::apply with argument → 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/lang/Double::valueOf → 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 call to java/util/function/Function::apply → KILLED

46

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

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()]
removed call to java/lang/Double::valueOf → 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/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::scaleFitness → KILLED

50

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

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()]
replaced return value with null for net/bmahe/genetics4j/core/postevaluationprocess/FitnessSharing::apply → 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()]
removed call to net/bmahe/genetics4j/core/Population::of → KILLED

58

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

59

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

64

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

65

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

66

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

69

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

75

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

76

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

77

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

80

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

86

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

87

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.19.6