1 | package net.bmahe.genetics4j.core.spec.statistics.distributions; | |
2 | ||
3 | import org.immutables.value.Value; | |
4 | ||
5 | @Value.Immutable | |
6 | public abstract class NormalDistribution implements Distribution { | |
7 | ||
8 | @Value.Parameter | |
9 | @Value.Default | |
10 | public double mean() { | |
11 |
1
1. mean : Substituted 0.0 with 1.0 → NO_COVERAGE |
return 0.0d; |
12 | } | |
13 | ||
14 | @Value.Parameter | |
15 | @Value.Default | |
16 | public double standardDeviation() { | |
17 |
2
1. standardDeviation : replaced double return with 0.0d for net/bmahe/genetics4j/core/spec/statistics/distributions/NormalDistribution::standardDeviation → NO_COVERAGE 2. standardDeviation : Substituted 1.0 with 2.0 → NO_COVERAGE |
return 1.0d; |
18 | } | |
19 | ||
20 | public static NormalDistribution of(final double mean, final double standardDeviation) { | |
21 |
2
1. of : removed call to net/bmahe/genetics4j/core/spec/statistics/distributions/ImmutableNormalDistribution::of → KILLED 2. of : replaced return value with null for net/bmahe/genetics4j/core/spec/statistics/distributions/NormalDistribution::of → KILLED |
return ImmutableNormalDistribution.of(mean, standardDeviation); |
22 | } | |
23 | } | |
Mutations | ||
11 |
1.1 |
|
17 |
1.1 2.2 |
|
21 |
1.1 2.2 |