HannanRissanen2 { public boolean process(final IReadDataBlock value, SarmaSpecification spec) { clear(); m_spec = spec.clone(); AbsMeanNormalizer normalizer = new AbsMeanNormalizer(); if (!normalizer.process(value)) { return false; } m_data = normalizer.getNormalizedData(); m_odata = value; return calc(); } HannanRissanen2(); boolean isBiasCorrection(); void setBiasCorrection(boolean biascorrection); boolean isFinalCorrection(); void setFinalCorrection(boolean finalcorrection); Initialization getInitialization(); void setInitialization(Initialization initialization); double getBic(); IReadDataBlock getData(); SarimaModel getModel(); SarmaSpecification getSpec(); boolean process(final IReadDataBlock value, SarmaSpecification spec);  }
@Test public void testSomeMethod() { SarmaSpecification spec = new SarmaSpecification(12); spec.setP(3); spec.setBP(0); spec.setQ(1); spec.setBQ(1); SarimaModelBuilder builder = new SarimaModelBuilder(); SarimaModel model = new SarimaModel(spec); SarimaModel arima = builder.randomize(model, 1); ArimaModelBuilder gen = new ArimaModelBuilder(); double[] data = gen.generateStationary(arima, 240); HannanRissanen hr = new HannanRissanen(); hr.process(new ReadDataBlock(data), spec); HannanRissanen2 hr2 = new HannanRissanen2(); hr2.process(new ReadDataBlock(data), spec); }