test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/timeseries/regression/DiffConstantTest.java
test_class.identifier: DiffConstantTest
test_case.body: @Test
      public void testLinear() {
          Day start=Day.toDay();
          TsDomain domain=new TsDomain(new TsPeriod(TsFrequency.Monthly, start), 120);
          DataBlock data0=new DataBlock(domain.getLength());
          DataBlock data1=new DataBlock(domain.getLength());
          DiffConstant dc=new DiffConstant(new BackFilter(UnitRoots.D1), start);
          LinearTrend t=new LinearTrend(start);
          dc.data(domain.getStart(), data0);
          t.data(domain.getStart(), data1);
          assertTrue(data0.distance(data1)<1e-9);
      }
test_case.class_method_signature: DiffConstantTest.testLinear()
test_case.full_signature: @Test public void testLinear()
test_case.identifier: testLinear
test_case.invocations: toDay getLength getLength data getStart data getStart assertTrue distance
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testLinear()
focal_class.declarator: m_start
focal_class.modifier: private
focal_class.original_string: private Day m_start;
focal_class.type: Day
focal_class.var_name: m_start
focal_class.declarator: m_ur
focal_class.modifier: private
focal_class.original_string: private BackFilter m_ur;
focal_class.type: BackFilter
focal_class.var_name: m_ur
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/timeseries/regression/DiffConstant.java
focal_class.identifier: DiffConstant
focal_class.class_method_signature: DiffConstant.generateMeanEffect(BackFilter ur, int n)
focal_class.full_signature: public static double[] generateMeanEffect(BackFilter ur, int n)
focal_class.identifier: generateMeanEffect
focal_class.modifiers: public static
focal_class.parameters: (BackFilter ur, int n)
focal_class.return: double[]
focal_class.signature: double[] generateMeanEffect(BackFilter ur, int n)
focal_class.class_method_signature: DiffConstant.DiffConstant(BackFilter ur, Day start)
focal_class.full_signature: public  DiffConstant(BackFilter ur, Day start)
focal_class.identifier: DiffConstant
focal_class.modifiers: public
focal_class.parameters: (BackFilter ur, Day start)
focal_class.signature:  DiffConstant(BackFilter ur, Day start)
focal_class.class_method_signature: DiffConstant.data(TsPeriod start, DataBlock data)
focal_class.full_signature: @Override public void data(TsPeriod start, DataBlock data)
focal_class.identifier: data
focal_class.modifiers: @Override public
focal_class.parameters: (TsPeriod start, DataBlock data)
focal_class.return: void
focal_class.signature: void data(TsPeriod start, DataBlock data)
focal_class.class_method_signature: DiffConstant.getDescription(TsFrequency context)
focal_class.full_signature: @Override public String getDescription(TsFrequency context)
focal_class.identifier: getDescription
focal_class.modifiers: @Override public
focal_class.parameters: (TsFrequency context)
focal_class.return: String
focal_class.signature: String getDescription(TsFrequency context)
focal_class.class_method_signature: DiffConstant.isSignificant(TsDomain domain)
focal_class.full_signature: @Override public boolean isSignificant(TsDomain domain)
focal_class.identifier: isSignificant
focal_class.modifiers: @Override public
focal_class.parameters: (TsDomain domain)
focal_class.return: boolean
focal_class.signature: boolean isSignificant(TsDomain domain)
focal_class.class_method_signature: DiffConstant.getName()
focal_class.full_signature: @Override public String getName()
focal_class.identifier: getName
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.superclass: extends AbstractSingleTsVariable
focal_method.body: @Override
      public void data(TsPeriod start, DataBlock data) {
          TsPeriod s = new TsPeriod(start.getFrequency(), m_start);
          int del = start.minus(s);
          // raw implementation
          if (del < 0) {
              throw new TsException("Unexpected DConstant");
          }
          double[] g = generateMeanEffect(m_ur, del + data.getLength());
          data.copyFrom(g, del);
      }
focal_method.class_method_signature: DiffConstant.data(TsPeriod start, DataBlock data)
focal_method.full_signature: @Override public void data(TsPeriod start, DataBlock data)
focal_method.identifier: data
focal_method.invocations: getFrequency minus generateMeanEffect getLength copyFrom
focal_method.modifiers: @Override public
focal_method.parameters: (TsPeriod start, DataBlock data)
focal_method.return: void
focal_method.signature: void data(TsPeriod start, DataBlock data)