diff --git a/Comparison/src/main/java/cz/fidentis/analyst/visitors/face/WeightedAverageCollector.java b/Comparison/src/main/java/cz/fidentis/analyst/visitors/face/WeightedAverageCollector.java index 2ef4694520da2ecedcb664e47cc6c1d61aaf0a85..830d086152b3ce5ef64a77b8c4f240a9ea0c7576 100644 --- a/Comparison/src/main/java/cz/fidentis/analyst/visitors/face/WeightedAverageCollector.java +++ b/Comparison/src/main/java/cz/fidentis/analyst/visitors/face/WeightedAverageCollector.java @@ -9,11 +9,11 @@ import java.util.function.ToDoubleFunction; import java.util.stream.Collector; /** - * A collector for computing weighted average suitable for use in Java 8 streams. + * A collector for calculation of the weighted average, suitable for use in Java 8 streams. * * <p> * A mutable reduction operation that accumulates input elements into a mutable - * result container, optionally transforming the accumulated result into a final + * result container, transforming the accumulated result into a final * representation after all input elements have been processed. * </p> * @@ -76,7 +76,7 @@ public class WeightedAverageCollector<T> implements Collector<T, IntemediateResu } /** - * A function that accepts two partial results and merges them. The + * A function that accepts two partial results and merges them. The * combiner function may fold state from one argument into the other and * return that, or may return a new result container. * @@ -95,12 +95,12 @@ public class WeightedAverageCollector<T> implements Collector<T, IntemediateResu /** * Perform the final transformation from the intermediate accumulation type - * {@code A} to the final result type {@code R}. + * {@link IntemediateResults} to the final result type {@link Double}. * * <p> * If the characteristic {@code IDENTITY_FINISH} is * set, this function may be presumed to be an identity transform with an - * unchecked cast from {@code A} to {@code R}. + * unchecked cast from {@link IntemediateResults} to {@link Double}. * </p> * * @return A function which transforms the intermediate result to the final