From 63468230ad6c52f1725745e1af948e0999a22ba7 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Sat, 22 Apr 2023 23:50:14 +0400 Subject: [PATCH] #10 -- revert --- src/main/java/ru/ulstu/service/TimeSeriesService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/ru/ulstu/service/TimeSeriesService.java b/src/main/java/ru/ulstu/service/TimeSeriesService.java index c659b56..ce40fa9 100644 --- a/src/main/java/ru/ulstu/service/TimeSeriesService.java +++ b/src/main/java/ru/ulstu/service/TimeSeriesService.java @@ -58,7 +58,7 @@ public class TimeSeriesService { public TimeSeries getGroupedTendencies(TimeSeries timeSeries) { try { - timeSeries = smoothTimeSeries(timeSeries, "FTransform").getTimeSeries(); + timeSeries = getMaxSmoothedTimeSeries(timeSeries).getTimeSeries(); } catch (Exception e) { e.printStackTrace(); } @@ -81,7 +81,7 @@ public class TimeSeriesService { private boolean tsTendencyNotChanged(double diff, double prevDiff) { return (diff > 0 && prevDiff > 0) - || ((diff < 0 && prevDiff < 0) - || ((diff == 0 && prevDiff == 0))); + || (diff < 0 && prevDiff < 0) + || (diff == 0 && prevDiff == 0); } }