Steven Gould

OpenForecast is a package of general purpose, forecasting models written in Java that can be applied to any data series. No knowledge of forecasting is required. Using this package, the most appropriate algorithm for your data will be selected.

Project Members:

  • How can Implemen Openforecast Input from Mysql database

  • Steven Gould
    Steven Gould

    There are various ways to do this but perhaps the most direct would be to subclass net.sourceforge.openforecast.input.AbstractBuilder implementing each of the methods using data read from the database. You would need to write the SQL that is specific to accessing your data from the MySQL database. I assume that you are familiar with writing SQL statements. If not, then there are plenty of MySQL forums available to help you with that.

    An alternative method would be to write a SQL query to extract the required data in CSV format, then import that to OpenForecast using an instance of net.sourceforge.openforecast.input.CSVBuilder. This approach may be easier if you are relatively new to using OpenForecast since the internal details of OpenForecast are encapsulated in the CSVBuilder class.