test_class.file: jtstoolkit/src/test/java/ec/tstoolkit/timeseries/regression/TsVariableWindowTest.java
test_class.identifier: TsVariableWindowTest
test_case.body: @Test
      public void testTD() {
          Matrix M1 = new Matrix(251, 6);
          Matrix M2 = new Matrix(251, 6);
          TsDomain all = new TsDomain(TsFrequency.Monthly, 1975, 7, 251);
          GregorianCalendarVariables var = GregorianCalendarVariables.getDefault(TradingDaysType.TradingDays);
          var.data(all, M1.columnList());
  //        System.out.println("all");
  //        System.out.println(M1);
          TsVariableWindow wnd1 = new TsVariableWindow(var, new Day(1970, Month.January, 0), new Day(1982, Month.April, 29));
          TsVariableWindow wnd2 = new TsVariableWindow(var, new Day(1982, Month.May, 0), Day.toDay());
          wnd1.data(all, M2.columnList());
          assertTrue(M1.distance(M2) > 1e-9);
  //        System.out.println("wnd1");
  //        System.out.println(M2);
          wnd2.data(all, M2.columnList());
  //        System.out.println("wnd2");
  //        System.out.println(M2);
          assertTrue(M1.distance(M2) < 1e-9);
      }
test_case.class_method_signature: TsVariableWindowTest.testTD()
test_case.full_signature: @Test public void testTD()
test_case.identifier: testTD
test_case.invocations: getDefault data columnList toDay data columnList assertTrue distance data columnList assertTrue distance
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTD()
focal_class.declarator: start
focal_class.modifier: private final
focal_class.original_string: private final Day start, end;
focal_class.type: Day
focal_class.var_name: start
focal_class.file: jtstoolkit/src/main/java/ec/tstoolkit/timeseries/regression/TsVariableWindow.java
focal_class.identifier: TsVariableWindow
focal_class.class_method_signature: TsVariableWindow.TsVariableWindow(final ITsVariable var, final Day start, final Day end)
focal_class.full_signature: public  TsVariableWindow(final ITsVariable var, final Day start, final Day end)
focal_class.identifier: TsVariableWindow
focal_class.modifiers: public
focal_class.parameters: (final ITsVariable var, final Day start, final Day end)
focal_class.signature:  TsVariableWindow(final ITsVariable var, final Day start, final Day end)
focal_class.class_method_signature: TsVariableWindow.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: TsVariableWindow.description(String desc)
focal_class.full_signature: private String description(String desc)
focal_class.identifier: description
focal_class.modifiers: private
focal_class.parameters: (String desc)
focal_class.return: String
focal_class.signature: String description(String desc)
focal_class.class_method_signature: TsVariableWindow.getStart()
focal_class.full_signature: public Day getStart()
focal_class.identifier: getStart
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Day
focal_class.signature: Day getStart()
focal_class.class_method_signature: TsVariableWindow.getEnd()
focal_class.full_signature: public Day getEnd()
focal_class.identifier: getEnd
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Day
focal_class.signature: Day getEnd()
focal_class.class_method_signature: TsVariableWindow.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: TsVariableWindow.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: TsVariableWindow.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: TsVariableWindow.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: TsVariableWindow.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: TsVariableWindow.getVariable()
focal_class.full_signature: @Override public ITsVariable getVariable()
focal_class.identifier: getVariable
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ITsVariable
focal_class.signature: ITsVariable getVariable()
focal_class.class_method_signature: TsVariableWindow.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: TsVariableWindow.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 AbstractTsModifier
focal_method.body: @Override
      public void data(TsDomain domain, List<DataBlock> data) {
          TsPeriodSelector sel=new TsPeriodSelector();
          sel.between(start, end);
          TsDomain sdom = domain.select(sel);
          int nbeg=sdom.getStart().minus(domain.getStart());
          int n=sdom.getLength();
          if (n == 0)
              return;
          ArrayList<DataBlock> tmp=new ArrayList<>();
          for (DataBlock bl : data){
              tmp.add(bl.extract(nbeg, n));
          }
          var.data(sdom, tmp);
      }
focal_method.class_method_signature: TsVariableWindow.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: between select minus getStart getStart getLength add extract data
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)