#10 -- revert
This commit is contained in:
parent
71920cf604
commit
63468230ad
@ -58,7 +58,7 @@ public class TimeSeriesService {
|
|||||||
|
|
||||||
public TimeSeries getGroupedTendencies(TimeSeries timeSeries) {
|
public TimeSeries getGroupedTendencies(TimeSeries timeSeries) {
|
||||||
try {
|
try {
|
||||||
timeSeries = smoothTimeSeries(timeSeries, "FTransform").getTimeSeries();
|
timeSeries = getMaxSmoothedTimeSeries(timeSeries).getTimeSeries();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ public class TimeSeriesService {
|
|||||||
|
|
||||||
private boolean tsTendencyNotChanged(double diff, double prevDiff) {
|
private boolean tsTendencyNotChanged(double diff, double prevDiff) {
|
||||||
return (diff > 0 && prevDiff > 0)
|
return (diff > 0 && prevDiff > 0)
|
||||||
|| ((diff < 0 && prevDiff < 0)
|
|| (diff < 0 && prevDiff < 0)
|
||||||
|| ((diff == 0 && prevDiff == 0)));
|
|| (diff == 0 && prevDiff == 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user