| 1 | package net.bmahe.genetics4j.gp.math; | |
| 2 | ||
| 3 | import java.util.Collections; | |
| 4 | import java.util.List; | |
| 5 | import java.util.function.BiFunction; | |
| 6 | ||
| 7 | import org.immutables.value.Value; | |
| 8 | import org.immutables.value.Value.Parameter; | |
| 9 | ||
| 10 | import net.bmahe.genetics4j.gp.Operation; | |
| 11 | ||
| 12 | @Value.Immutable | |
| 13 | public abstract class CoefficientOperation<T> extends Operation<T> { | |
| 14 | ||
| 15 | @Override | |
| 16 | public List<Class> acceptedTypes() { | |
| 17 |
1
1. acceptedTypes : removed call to java/util/Collections::emptyList → KILLED |
return Collections.emptyList(); |
| 18 | } | |
| 19 | ||
| 20 | @Override | |
| 21 | public BiFunction<T[], Object[], Object> compute() { | |
| 22 |
3
1. lambda$compute$0 : removed call to net/bmahe/genetics4j/gp/math/CoefficientOperation::value → KILLED 2. lambda$compute$0 : replaced return value with null for net/bmahe/genetics4j/gp/math/CoefficientOperation::lambda$compute$0 → KILLED 3. compute : replaced return value with null for net/bmahe/genetics4j/gp/math/CoefficientOperation::compute → KILLED |
return (input, parameter) -> value(); |
| 23 | } | |
| 24 | ||
| 25 | @Parameter | |
| 26 | public abstract T value(); | |
| 27 | ||
| 28 | } | |
Mutations | ||
| 17 |
1.1 |
|
| 22 |
1.1 2.2 3.3 |