- This topic has 3 replies, 2 voices, and was last updated 7 years, 12 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
ARIMAForecast function fails on this data:
import com.numericalmethod.suanshu.stats.timeseries.datastructure.univariate.realtime.inttime.IntTimeTimeSeries;
import com.numericalmethod.suanshu.stats.timeseries.datastructure.univariate.realtime.inttime.SimpleTimeSeries;
import com.numericalmethod.suanshu.stats.timeseries.linear.univariate.arima.*;
public class Arimasho {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
IntTimeTimeSeries xt = new SimpleTimeSeries(new double[]{2.0, 3349.0, 4321.0});
ARIMAForecast ar = new ARIMAForecast(xt,1,1,1,0);
double forecast=ar.next().xHat();
System.out.println(forecast);
}
}
Copyright 2019 © All rights Reserved |CQA