Login
Login

ARIMAForecast failure

Home 21090308 Forums Numerical Method Statistics ARIMAForecast failure

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1940
    demonwav
    Member

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

    }

    }

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.