Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Here is how to use this library - Quickstart Tutorial #42

Open
osmankhalid2005 opened this issue Apr 1, 2020 · 0 comments
Open

Here is how to use this library - Quickstart Tutorial #42

osmankhalid2005 opened this issue Apr 1, 2020 · 0 comments

Comments

@osmankhalid2005
Copy link

  1. Download the latest version of eclipse for java.
  2. Download the zip file of project, unzip, import in eclipse as gradle project. It will download many jar files, and after the process finishes, there will be approx 25 errors. To fix those errors follow the next step.
  3. Download the library lombok.jar from the URL: https://projectlombok.org/download and place it in the eclipse folder.
  4. Go to command, navigate to the eclipse directory, and give the following command:
    Drive:\eclipse>java -jar lombok-x.xx.jar (mention exact name of lombok jar file)
  5. Click on install/update button. Exit.
  6. Exit and Restart eclipse.
  7. Select the project folder and click on clean. This will rebuild the project and errors will be gone.
  8. To use the library, create a new java project in eclipse, and go the java build path of project, and select the tab "Projects". Click on add, and select the three existing projects: The project of this library, the project with name "math" and the project with name "time-series"
  9. To test the new project, create a new java class with Main function and use the following code in it:

`package testProj;

import com.github.signaflo.timeseries.TestData;
import com.github.signaflo.timeseries.TimeSeries;
import com.github.signaflo.timeseries.forecast.Forecast;
import com.github.signaflo.timeseries.model.Model;
import com.github.signaflo.timeseries.model.arima.Arima;
import com.github.signaflo.timeseries.model.arima.ArimaOrder;

public class MainFile {

public static void main(String[] args) 
{
	// TODO Auto-generated method stub
	
			TimeSeries timeSeries = TestData.debitcards;
			ArimaOrder modelOrder = ArimaOrder.order(0, 1, 1, 0, 1, 1); // Note that intercept fitting will automatically be turned off
			Arima model = Arima.model(timeSeries, modelOrder);
			Forecast forecast = model.forecast(1); // To specify the alpha significance level, add it as a second argument.
			
			System.out.println(forecast);
			
			System.out.println(forecast.pointEstimates().mean());

}

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant