| 1 | package net.bmahe.genetics4j.core.spec.combination; | |
| 2 | ||
| 3 | import org.immutables.value.Value; | |
| 4 | ||
| 5 | @Value.Immutable | |
| 6 | public abstract class SinglePointArithmetic implements CombinationPolicy { | |
| 7 | ||
| 8 | public static final double DEFAULT_ALPHA = 0.5d; | |
| 9 | ||
| 10 | @Value.Parameter | |
| 11 | @Value.Default | |
| 12 | public double alpha() { | |
| 13 |
2
1. alpha : replaced double return with 0.0d for net/bmahe/genetics4j/core/spec/combination/SinglePointArithmetic::alpha → NO_COVERAGE 2. alpha : Substituted 0.5 with 1.0 → NO_COVERAGE |
return DEFAULT_ALPHA; |
| 14 | } | |
| 15 | ||
| 16 | public static SinglePointArithmetic build() { | |
| 17 |
2
1. build : replaced return value with null for net/bmahe/genetics4j/core/spec/combination/SinglePointArithmetic::build → NO_COVERAGE 2. build : removed call to net/bmahe/genetics4j/core/spec/combination/SinglePointArithmetic$1::<init> → NO_COVERAGE |
return new SinglePointArithmetic() { |
| 18 | }; | |
| 19 | } | |
| 20 | ||
| 21 | public static SinglePointArithmetic of(final double alpha) { | |
| 22 |
2
1. of : removed call to net/bmahe/genetics4j/core/spec/combination/ImmutableSinglePointArithmetic::of → NO_COVERAGE 2. of : replaced return value with null for net/bmahe/genetics4j/core/spec/combination/SinglePointArithmetic::of → NO_COVERAGE |
return ImmutableSinglePointArithmetic.of(alpha); |
| 23 | } | |
| 24 | } | |
Mutations | ||
| 13 |
1.1 2.2 |
|
| 17 |
1.1 2.2 |
|
| 22 |
1.1 2.2 |