3-ftransform-forecasting #5

Open
romanov73 wants to merge 27 commits from 3-f-transform into master
Showing only changes of commit f4b8089f29 - Show all commits

View File

@ -27,6 +27,8 @@ public class AnomalyDifferenceSmoothed extends Target {
ModelingResult modelingResult = timeSeriesService.smoothTimeSeries(ts, "AddTrendAddSeason"); ModelingResult modelingResult = timeSeriesService.smoothTimeSeries(ts, "AddTrendAddSeason");
var tsResult = modelingResult.getTimeSeries(); var tsResult = modelingResult.getTimeSeries();
double diff = anomalyPoints.getMax().getValue()-anomalyPoints.getMin().getValue();
for (int i = 0; i < ts.getLength(); i++) { for (int i = 0; i < ts.getLength(); i++) {
residual.addValue(new TimeSeriesValue(ts.getValue(i).getDate(), Math.abs(ts.getNumericValue(i) - tsResult.getNumericValue(i)))); residual.addValue(new TimeSeriesValue(ts.getValue(i).getDate(), Math.abs(ts.getNumericValue(i) - tsResult.getNumericValue(i))));
} }