test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/timeseries/regression/SeasonalDummiesTest.java
test_class.identifier: SeasonalDummiesTest
test_case.body: @Test
      public void tesSum() {
          SeasonalDummies ds=new SeasonalDummies(TsFrequency.Monthly);
          TsDomain domain =new TsDomain(TsFrequency.Monthly, 1980, 3, 120);
          
          Matrix M=new Matrix(120, 11);
          ds.data(domain, M.columnList());
          assertTrue(Math.abs(M.sum())<1e-9 );
          
      }
test_case.class_method_signature: SeasonalDummiesTest.tesSum()
test_case.full_signature: @Test public void tesSum()
test_case.identifier: tesSum
test_case.invocations: data columnList assertTrue abs sum
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void tesSum()
focal_class.declarator: freq_
focal_class.original_string: TsFrequency freq_;
focal_class.type: TsFrequency
focal_class.var_name: freq_
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/timeseries/regression/SeasonalDummies.java
focal_class.identifier: SeasonalDummies
focal_class.interfaces: implements ITsVariable
focal_class.class_method_signature: SeasonalDummies.SeasonalDummies(TsFrequency freq)
focal_class.full_signature: public  SeasonalDummies(TsFrequency freq)
focal_class.identifier: SeasonalDummies
focal_class.modifiers: public
focal_class.parameters: (TsFrequency freq)
focal_class.signature:  SeasonalDummies(TsFrequency freq)
focal_class.class_method_signature: SeasonalDummies.data(TsDomain domain, List<DataBlock> data)
focal_class.full_signature: @Override public void data(TsDomain domain, List<DataBlock> data)
focal_class.identifier: data
focal_class.modifiers: @Override public
focal_class.parameters: (TsDomain domain, List<DataBlock> data)
focal_class.return: void
focal_class.signature: void data(TsDomain domain, List<DataBlock> data)
focal_class.class_method_signature: SeasonalDummies.getDefinitionDomain()
focal_class.full_signature: @Override public TsDomain getDefinitionDomain()
focal_class.identifier: getDefinitionDomain
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: TsDomain
focal_class.signature: TsDomain getDefinitionDomain()
focal_class.class_method_signature: SeasonalDummies.getDefinitionFrequency()
focal_class.full_signature: @Override public TsFrequency getDefinitionFrequency()
focal_class.identifier: getDefinitionFrequency
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: TsFrequency
focal_class.signature: TsFrequency getDefinitionFrequency()
focal_class.class_method_signature: SeasonalDummies.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: SeasonalDummies.getDim()
focal_class.full_signature: @Override public int getDim()
focal_class.identifier: getDim
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getDim()
focal_class.class_method_signature: SeasonalDummies.getItemDescription(int idx, TsFrequency context)
focal_class.full_signature: @Override public String getItemDescription(int idx, TsFrequency context)
focal_class.identifier: getItemDescription
focal_class.modifiers: @Override public
focal_class.parameters: (int idx, TsFrequency context)
focal_class.return: String
focal_class.signature: String getItemDescription(int idx, TsFrequency context)
focal_class.class_method_signature: SeasonalDummies.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: SeasonalDummies.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_method.body: @Override
      public void data(TsDomain domain, List<DataBlock> data) {
          int pstart = domain.getStart().getPosition();
          int ifreq = domain.getFrequency().intValue();
          int lstart = ifreq - pstart - 1;
          if (lstart < 0) {
              lstart += ifreq;
          }
          for (int i = 0; i < ifreq - 1; i++) {
              DataBlock x = data.get(i);
              int jstart = i - pstart;
              if (jstart < 0) {
                  jstart += ifreq;
              }
              DataBlock m = x.extract(jstart, -1, ifreq);
              m.set(1);
              DataBlock q = x.extract(lstart, -1, ifreq);
              q.set(-1);
          }
      }
focal_method.class_method_signature: SeasonalDummies.data(TsDomain domain, List<DataBlock> data)
focal_method.full_signature: @Override public void data(TsDomain domain, List<DataBlock> data)
focal_method.identifier: data
focal_method.invocations: getPosition getStart intValue getFrequency get extract set extract set
focal_method.modifiers: @Override public
focal_method.parameters: (TsDomain domain, List<DataBlock> data)
focal_method.return: void
focal_method.signature: void data(TsDomain domain, List<DataBlock> data)