test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/modelling/arima/CheckLastTest.java
test_class.identifier: CheckLastTest
test_case.body: @Test
      public void testSO() {
          TramoSpecification spec = TramoSpecification.TRfull.clone();
          spec.getOutliers().add(OutlierType.SO);
          spec.getOutliers().setCriticalValue(3);
          CheckLast cl=new CheckLast(spec.build());
          assertTrue(cl.check(Data.P));
      }
test_case.class_method_signature: CheckLastTest.testSO()
test_case.full_signature: @Test public void testSO()
test_case.identifier: testSO
test_case.invocations: clone add getOutliers setCriticalValue getOutliers build assertTrue check
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSO()
focal_class.declarator: preprocessor_
focal_class.modifier: private final
focal_class.original_string: private final IPreprocessor preprocessor_;
focal_class.type: IPreprocessor
focal_class.var_name: preprocessor_
focal_class.declarator: model_
focal_class.modifier: private
focal_class.original_string: private PreprocessingModel model_;
focal_class.type: PreprocessingModel
focal_class.var_name: model_
focal_class.declarator: info_
focal_class.modifier: private
focal_class.original_string: private InformationSet info_;
focal_class.type: InformationSet
focal_class.var_name: info_
focal_class.declarator: forecasts_
focal_class.modifier: private
focal_class.original_string: private Forecasts forecasts_;
focal_class.type: Forecasts
focal_class.var_name: forecasts_
focal_class.declarator: y_
focal_class.modifier: private
focal_class.original_string: private TsData y_, fy_, ofcasts_;
focal_class.type: TsData
focal_class.var_name: y_
focal_class.declarator: nback_ = 1
focal_class.modifier: private
focal_class.original_string: private int nback_ = 1;
focal_class.type: int
focal_class.var_name: nback_
focal_class.declarator: MAX_REPEAT_COUNT = 80
focal_class.modifier: public final static
focal_class.original_string: public final static int MAX_REPEAT_COUNT = 80, MAX_MISSING_COUNT = 33;
focal_class.type: int
focal_class.var_name: MAX_REPEAT_COUNT
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/modelling/arima/CheckLast.java
focal_class.identifier: CheckLast
focal_class.class_method_signature: CheckLast.CheckLast(IPreprocessor preprocessor)
focal_class.full_signature: public  CheckLast(IPreprocessor preprocessor)
focal_class.identifier: CheckLast
focal_class.modifiers: public
focal_class.parameters: (IPreprocessor preprocessor)
focal_class.signature:  CheckLast(IPreprocessor preprocessor)
focal_class.class_method_signature: CheckLast.check(TsData data)
focal_class.full_signature: public boolean check(TsData data)
focal_class.identifier: check
focal_class.modifiers: public
focal_class.parameters: (TsData data)
focal_class.return: boolean
focal_class.signature: boolean check(TsData data)
focal_class.class_method_signature: CheckLast.getForecast()
focal_class.full_signature: public Forecasts getForecast()
focal_class.identifier: getForecast
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Forecasts
focal_class.signature: Forecasts getForecast()
focal_class.class_method_signature: CheckLast.getValues()
focal_class.full_signature: public double[] getValues()
focal_class.identifier: getValues
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] getValues()
focal_class.class_method_signature: CheckLast.getActualValues()
focal_class.full_signature: public double[] getActualValues()
focal_class.identifier: getActualValues
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] getActualValues()
focal_class.class_method_signature: CheckLast.getAbsoluteErrors()
focal_class.full_signature: public double[] getAbsoluteErrors()
focal_class.identifier: getAbsoluteErrors
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] getAbsoluteErrors()
focal_class.class_method_signature: CheckLast.getAbsoluteError(int i)
focal_class.full_signature: public double getAbsoluteError(int i)
focal_class.identifier: getAbsoluteError
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: double
focal_class.signature: double getAbsoluteError(int i)
focal_class.class_method_signature: CheckLast.getForecastsValues()
focal_class.full_signature: public double[] getForecastsValues()
focal_class.identifier: getForecastsValues
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] getForecastsValues()
focal_class.class_method_signature: CheckLast.getScores()
focal_class.full_signature: public double[] getScores()
focal_class.identifier: getScores
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] getScores()
focal_class.class_method_signature: CheckLast.getRelativeErrors()
focal_class.full_signature: public double[] getRelativeErrors()
focal_class.identifier: getRelativeErrors
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double[]
focal_class.signature: double[] getRelativeErrors()
focal_class.class_method_signature: CheckLast.getScore(int i)
focal_class.full_signature: public double getScore(int i)
focal_class.identifier: getScore
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: double
focal_class.signature: double getScore(int i)
focal_class.class_method_signature: CheckLast.getRelativeError(int i)
focal_class.full_signature: public double getRelativeError(int i)
focal_class.identifier: getRelativeError
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: double
focal_class.signature: double getRelativeError(int i)
focal_class.class_method_signature: CheckLast.getInformation()
focal_class.full_signature: public InformationSet getInformation()
focal_class.identifier: getInformation
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: InformationSet
focal_class.signature: InformationSet getInformation()
focal_class.class_method_signature: CheckLast.getBackCount()
focal_class.full_signature: public int getBackCount()
focal_class.identifier: getBackCount
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBackCount()
focal_class.class_method_signature: CheckLast.setBackCount(int n)
focal_class.full_signature: public void setBackCount(int n)
focal_class.identifier: setBackCount
focal_class.modifiers: public
focal_class.parameters: (int n)
focal_class.return: void
focal_class.signature: void setBackCount(int n)
focal_class.class_method_signature: CheckLast.getEstimatedModel()
focal_class.full_signature: public PreprocessingModel getEstimatedModel()
focal_class.identifier: getEstimatedModel
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: PreprocessingModel
focal_class.signature: PreprocessingModel getEstimatedModel()
focal_class.class_method_signature: CheckLast.testSeries(final TsData y)
focal_class.full_signature: public boolean testSeries(final TsData y)
focal_class.identifier: testSeries
focal_class.modifiers: public
focal_class.parameters: (final TsData y)
focal_class.return: boolean
focal_class.signature: boolean testSeries(final TsData y)
focal_class.class_method_signature: CheckLast.clear()
focal_class.full_signature: private void clear()
focal_class.identifier: clear
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_method.body: public boolean check(TsData data) {
  
          clear();
          if (!testSeries(data)) {
              return false;
          }
          ModellingContext context = new ModellingContext();
          model_ = preprocessor_.process(data.drop(0, nback_), context);
          if (model_ == null) {
              return false;
          }
  
          info_ = context.information;
          TsVariableList vars = model_.description.buildRegressionVariables();
          TsDomain fdomain = new TsDomain(model_.description.getSeriesDomain().getEnd(), nback_);
          List<DataBlock> x = vars.all().data(fdomain);
  
          forecasts_ = new Forecasts();
  
          RegArimaEstimation<SarimaModel> estimation
                  = new RegArimaEstimation<>(model_.estimation.getRegArima(), model_.estimation.getLikelihood());
  
          try {
              forecasts_.calcForecast(estimation, x, nback_, model_.description.getArimaComponent().getFreeParametersCount());
          } catch (RuntimeException err) {
              return false;
          }
  
          y_ = data.fittoDomain(fdomain);
          fy_ = y_.clone();
          ofcasts_ = new TsData(fdomain);
          for (int i = 0; i < ofcasts_.getLength(); ++i) {
              ofcasts_.set(i, forecasts_.forecast(i));
          }
          model_.backTransform(ofcasts_, true, true);
  
          List<ITsDataTransformation> transformations = model_.description.transformations();
          for (ITsDataTransformation tr : transformations) {
              tr.transform(fy_, null);
          }
  
          return true;
      }
focal_method.class_method_signature: CheckLast.check(TsData data)
focal_method.full_signature: public boolean check(TsData data)
focal_method.identifier: check
focal_method.invocations: clear testSeries process drop buildRegressionVariables getEnd getSeriesDomain data all getRegArima getLikelihood calcForecast getFreeParametersCount getArimaComponent fittoDomain clone getLength set forecast backTransform transformations transform
focal_method.modifiers: public
focal_method.parameters: (TsData data)
focal_method.return: boolean
focal_method.signature: boolean check(TsData data)