AutomaticPeriodIdentification { private AutomaticPeriodIdentification() { } private  AutomaticPeriodIdentification(); static int periods(final List<DataPoint> data); static int periods(final List<DataPoint> data, double criticalValue); static final double ADF_TEST_DEFAULT_CRITICAL_PVALUE; }
@Test public void testAutomaticPeriodIdentification() throws IOException { for (String model: seasonalModels) { ModelData rModel = ModelReader.read(model); int periods = AutomaticPeriodIdentification.periods(rModel.getData()); System.out.println("Model=" + model + ", periods=" + rModel.getPeriods() + ", estimated=" + periods); Assert.assertEquals(rModel.getPeriods(), periods); } }