This commit is contained in:
Anton Romanov 2023-04-22 23:50:14 +04:00
parent 71920cf604
commit 63468230ad

View File

@ -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);
}
}