test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/modelling/arima/demetra/DifferencingModuleTest.java
test_class.identifier: DifferencingModuleTest
test_case.body: @Test
      public void testSomeMethod() {
          ModellingContext context = new ModellingContext();
          context.automodelling = true;
          context.hasseas = true;
          context.description = new ModelDescription(Data.P, null);
   //       context.description.setAirline(true);
          context.description.setTransformation(DefaultTransformationType.Log);
          DifferencingModule diff=new DifferencingModule();
          diff.process(context);
  //        System.out.println(diff.getD());
  //        System.out.println(diff.getBD());
  //        System.out.println(diff.getTmean());
  //        System.out.println(diff.isMeanCorrection());
      }
test_case.class_method_signature: DifferencingModuleTest.testSomeMethod()
test_case.full_signature: @Test public void testSomeMethod()
test_case.identifier: testSomeMethod
test_case.invocations: setTransformation process
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testSomeMethod()
focal_class.declarator: MAXD = 2
focal_class.modifier: public static final
focal_class.original_string: public static final int MAXD = 2, MAXBD = 1;
focal_class.type: int
focal_class.var_name: MAXD
focal_class.declarator: EPS = 1e-5
focal_class.modifier: public static final
focal_class.original_string: public static final double EPS = 1e-5;
focal_class.type: double
focal_class.var_name: EPS
focal_class.declarator: d
focal_class.modifier: private
focal_class.original_string: private int d, bd, freq;
focal_class.type: int
focal_class.var_name: d
focal_class.declarator: tmean
focal_class.modifier: private
focal_class.original_string: private double tmean;
focal_class.type: double
focal_class.var_name: tmean
focal_class.declarator: k = 1.2
focal_class.modifier: private
focal_class.original_string: private double k = 1.2;
focal_class.type: double
focal_class.var_name: k
focal_class.declarator: tstat = 1.96
focal_class.modifier: private
focal_class.original_string: private double tstat = 1.96;
focal_class.type: double
focal_class.var_name: tstat
focal_class.declarator: maxd = MAXD
focal_class.modifier: private
focal_class.original_string: private int maxd = MAXD, maxbd = MAXBD;
focal_class.type: int
focal_class.var_name: maxd
focal_class.declarator: regularFirst = false
focal_class.modifier: private
focal_class.original_string: private boolean regularFirst = false;
focal_class.type: boolean
focal_class.var_name: regularFirst
focal_class.declarator: mad = false
focal_class.modifier: private
focal_class.original_string: private boolean mad = false;
focal_class.type: boolean
focal_class.var_name: mad
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/modelling/arima/demetra/DifferencingModule.java
focal_class.identifier: DifferencingModule
focal_class.interfaces: implements IDifferencingModule, IPreprocessingModule
focal_class.class_method_signature: DifferencingModule.DifferencingModule()
focal_class.full_signature: public  DifferencingModule()
focal_class.identifier: DifferencingModule
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  DifferencingModule()
focal_class.class_method_signature: DifferencingModule.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_class.class_method_signature: DifferencingModule.getBD()
focal_class.full_signature: @Override public int getBD()
focal_class.identifier: getBD
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getBD()
focal_class.class_method_signature: DifferencingModule.isMeanCorrection()
focal_class.full_signature: @Override public boolean isMeanCorrection()
focal_class.identifier: isMeanCorrection
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isMeanCorrection()
focal_class.class_method_signature: DifferencingModule.getD()
focal_class.full_signature: @Override public int getD()
focal_class.identifier: getD
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getD()
focal_class.class_method_signature: DifferencingModule.getDifferencingFilter()
focal_class.full_signature: public BackFilter getDifferencingFilter()
focal_class.identifier: getDifferencingFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: BackFilter
focal_class.signature: BackFilter getDifferencingFilter()
focal_class.class_method_signature: DifferencingModule.std(IReadDataBlock z)
focal_class.full_signature: private double std(IReadDataBlock z)
focal_class.identifier: std
focal_class.modifiers: private
focal_class.parameters: (IReadDataBlock z)
focal_class.return: double
focal_class.signature: double std(IReadDataBlock z)
focal_class.class_method_signature: DifferencingModule.process(ModellingContext context)
focal_class.full_signature: @Override public ProcessingResult process(ModellingContext context)
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: (ModellingContext context)
focal_class.return: ProcessingResult
focal_class.signature: ProcessingResult process(ModellingContext context)
focal_class.class_method_signature: DifferencingModule.process(final IReadDataBlock res, int freq, int curd, int curbd)
focal_class.full_signature: @Override public void process(final IReadDataBlock res, int freq, int curd, int curbd)
focal_class.identifier: process
focal_class.modifiers: @Override public
focal_class.parameters: (final IReadDataBlock res, int freq, int curd, int curbd)
focal_class.return: void
focal_class.signature: void process(final IReadDataBlock res, int freq, int curd, int curbd)
focal_class.class_method_signature: DifferencingModule.testMean(DataBlock z)
focal_class.full_signature: private void testMean(DataBlock z)
focal_class.identifier: testMean
focal_class.modifiers: private
focal_class.parameters: (DataBlock z)
focal_class.return: void
focal_class.signature: void testMean(DataBlock z)
focal_class.class_method_signature: DifferencingModule.getTmean()
focal_class.full_signature: public double getTmean()
focal_class.identifier: getTmean
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getTmean()
focal_class.class_method_signature: DifferencingModule.getK()
focal_class.full_signature: public double getK()
focal_class.identifier: getK
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getK()
focal_class.class_method_signature: DifferencingModule.setK(double k)
focal_class.full_signature: public void setK(double k)
focal_class.identifier: setK
focal_class.modifiers: public
focal_class.parameters: (double k)
focal_class.return: void
focal_class.signature: void setK(double k)
focal_class.class_method_signature: DifferencingModule.getTstat()
focal_class.full_signature: public double getTstat()
focal_class.identifier: getTstat
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getTstat()
focal_class.class_method_signature: DifferencingModule.setTstat(double tstat)
focal_class.full_signature: public void setTstat(double tstat)
focal_class.identifier: setTstat
focal_class.modifiers: public
focal_class.parameters: (double tstat)
focal_class.return: void
focal_class.signature: void setTstat(double tstat)
focal_class.class_method_signature: DifferencingModule.setLimits(int maxd, int maxbd)
focal_class.full_signature: @Override public void setLimits(int maxd, int maxbd)
focal_class.identifier: setLimits
focal_class.modifiers: @Override public
focal_class.parameters: (int maxd, int maxbd)
focal_class.return: void
focal_class.signature: void setLimits(int maxd, int maxbd)
focal_class.class_method_signature: DifferencingModule.isRegularFirst()
focal_class.full_signature: public boolean isRegularFirst()
focal_class.identifier: isRegularFirst
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isRegularFirst()
focal_class.class_method_signature: DifferencingModule.setRegularFirst(boolean regularFirst)
focal_class.full_signature: public void setRegularFirst(boolean regularFirst)
focal_class.identifier: setRegularFirst
focal_class.modifiers: public
focal_class.parameters: (boolean regularFirst)
focal_class.return: void
focal_class.signature: void setRegularFirst(boolean regularFirst)
focal_class.class_method_signature: DifferencingModule.isMad()
focal_class.full_signature: public boolean isMad()
focal_class.identifier: isMad
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isMad()
focal_class.class_method_signature: DifferencingModule.setMad(boolean mad)
focal_class.full_signature: public void setMad(boolean mad)
focal_class.identifier: setMad
focal_class.modifiers: public
focal_class.parameters: (boolean mad)
focal_class.return: void
focal_class.signature: void setMad(boolean mad)
focal_class.superclass: extends DemetraModule
focal_method.body: @Override
      public ProcessingResult process(ModellingContext context) {
          try {
              // correct data for estimated outliers...
              DataBlock res;
              if (context.estimation != null) {
                  int xcount = context.estimation.getRegArima().getXCount();
                  int xout = context.description.getOutliers().size();
  
                  res = context.estimation.getCorrectedData(xcount - xout, xcount);
              } else {
                  res = new DataBlock(context.description.transformedOriginal());
              }
              SarimaSpecification nspec = context.description.getSpecification();
              // get residuals
              freq = context.description.getFrequency();
              process(res, freq, nspec.getD(), nspec.getBD());
              boolean changed = false;
              if (nspec.getD() != d || nspec.getBD() != bd) {
                  changed = true;
                  SarimaSpecification cspec = new SarimaSpecification(freq);
                  cspec.setD(d);
                  cspec.setBD(bd);
                  context.description.setSpecification(cspec);
                  context.estimation = null;
              }
              if (isMeanCorrection() != context.description.isEstimatedMean()) {
                  changed = true;
                  context.description.setMean(isMeanCorrection());
                  context.estimation = null;
              }
  //            addDifferencingInfo(context, d, bd, mean);
              return changed ? ProcessingResult.Changed : ProcessingResult.Unchanged;
  
          } catch (RuntimeException err) {
              context.description.setAirline(context.hasseas);
              context.estimation = null;
              return ProcessingResult.Failed;
          }
      }
focal_method.class_method_signature: DifferencingModule.process(ModellingContext context)
focal_method.full_signature: @Override public ProcessingResult process(ModellingContext context)
focal_method.identifier: process
focal_method.invocations: getXCount getRegArima size getOutliers getCorrectedData transformedOriginal getSpecification getFrequency process getD getBD getD getBD setD setBD setSpecification isMeanCorrection isEstimatedMean setMean isMeanCorrection setAirline
focal_method.modifiers: @Override public
focal_method.parameters: (ModellingContext context)
focal_method.return: ProcessingResult
focal_method.signature: ProcessingResult process(ModellingContext context)