test_class.file: jtstoolkit/src/test/java/ec/satoolkit/diagnostics/StationaryVarianceDecompositionTest.java
test_class.identifier: StationaryVarianceDecompositionTest
test_case.body: @Ignore
      @Test
      public void testTS() {
          CompositeResults rslts = TramoSeatsProcessingFactory.process(Data.X, TramoSeatsSpecification.RSAfull);
          StationaryVarianceDecomposition var = new StationaryVarianceDecomposition();
          var.process(rslts);
          System.out.println("Tramo-Seats");
          System.out.println(var);
      }
test_case.class_method_signature: StationaryVarianceDecompositionTest.testTS()
test_case.full_signature: @Ignore @Test public void testTS()
test_case.identifier: testTS
test_case.invocations: process process println println
test_case.modifiers: @Ignore @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testTS()
focal_class.declarator: varC
focal_class.modifier: private
focal_class.original_string: private double varC, varS, varI, varP, varCal;
focal_class.type: double
focal_class.var_name: varC
focal_class.declarator: trendComputer
focal_class.modifier: private final
focal_class.original_string: private final ILongTermTrendComputer trendComputer;
focal_class.type: ILongTermTrendComputer
focal_class.var_name: trendComputer
focal_class.declarator: nl = System.lineSeparator()
focal_class.modifier: private static final
focal_class.original_string: private static final String nl = System.lineSeparator();
focal_class.type: String
focal_class.var_name: nl
focal_class.file: jtstoolkit/src/main/java/ec/satoolkit/diagnostics/StationaryVarianceDecomposition.java
focal_class.identifier: StationaryVarianceDecomposition
focal_class.class_method_signature: StationaryVarianceDecomposition.StationaryVarianceDecomposition()
focal_class.full_signature: public  StationaryVarianceDecomposition()
focal_class.identifier: StationaryVarianceDecomposition
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  StationaryVarianceDecomposition()
focal_class.class_method_signature: StationaryVarianceDecomposition.StationaryVarianceDecomposition(final ILongTermTrendComputer trendComputer)
focal_class.full_signature: public  StationaryVarianceDecomposition(final ILongTermTrendComputer trendComputer)
focal_class.identifier: StationaryVarianceDecomposition
focal_class.modifiers: public
focal_class.parameters: (final ILongTermTrendComputer trendComputer)
focal_class.signature:  StationaryVarianceDecomposition(final ILongTermTrendComputer trendComputer)
focal_class.class_method_signature: StationaryVarianceDecomposition.getTrendComputer()
focal_class.full_signature: public ILongTermTrendComputer getTrendComputer()
focal_class.identifier: getTrendComputer
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ILongTermTrendComputer
focal_class.signature: ILongTermTrendComputer getTrendComputer()
focal_class.class_method_signature: StationaryVarianceDecomposition.process(final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)
focal_class.full_signature: public boolean process(final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)
focal_class.return: boolean
focal_class.signature: boolean process(final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)
focal_class.class_method_signature: StationaryVarianceDecomposition.process(IProcResults results)
focal_class.full_signature: public boolean process(IProcResults results)
focal_class.identifier: process
focal_class.modifiers: public
focal_class.parameters: (IProcResults results)
focal_class.return: boolean
focal_class.signature: boolean process(IProcResults results)
focal_class.class_method_signature: StationaryVarianceDecomposition.getVarI()
focal_class.full_signature: public double getVarI()
focal_class.identifier: getVarI
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getVarI()
focal_class.class_method_signature: StationaryVarianceDecomposition.getVarS()
focal_class.full_signature: public double getVarS()
focal_class.identifier: getVarS
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getVarS()
focal_class.class_method_signature: StationaryVarianceDecomposition.getVarC()
focal_class.full_signature: public double getVarC()
focal_class.identifier: getVarC
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getVarC()
focal_class.class_method_signature: StationaryVarianceDecomposition.getVarP()
focal_class.full_signature: public double getVarP()
focal_class.identifier: getVarP
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getVarP()
focal_class.class_method_signature: StationaryVarianceDecomposition.getVarTD()
focal_class.full_signature: public double getVarTD()
focal_class.identifier: getVarTD
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getVarTD()
focal_class.class_method_signature: StationaryVarianceDecomposition.getVarTotal()
focal_class.full_signature: public double getVarTotal()
focal_class.identifier: getVarTotal
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: double
focal_class.signature: double getVarTotal()
focal_class.class_method_signature: StationaryVarianceDecomposition.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: public boolean process(final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul) {
          if (O == null) {
              return false;
          }
          TsData stOc, stCc, Sc, Ic, Calc, Pc;
          if (mul) {
              // use logs
              stOc = O.log();
              stCc = T != null ? T.log() : null;
              Sc = S != null ? S.log() : null;
              Ic = I != null ? I.log() : null;
              Calc = Cal != null ? Cal.log() : null;
              Pc = others != null ? others.log() : null;
  
          } else {
              stOc = O;
              stCc = T;
              Sc = S;
              Ic = I;
              Calc = Cal;
              Pc = others;
          }
  
          TsData lt = trendComputer.calcLongTermTrend(stCc);
          stCc = TsData.subtract(stCc, lt);
          stOc = TsData.subtract(stOc, lt);
  
          //
          DescriptiveStatistics stats = new DescriptiveStatistics(stOc);
          double varO = stats.getVar();
  
          if (stCc != null) {
              stats = new DescriptiveStatistics(stCc);
              varC = stats.getVar();
          } else {
              varC = 0;
          }
  
          if (Sc != null) {
              stats = new DescriptiveStatistics(Sc);
              varS = stats.getVar();
          } else {
              varS = 0;
          }
          if (Ic != null) {
              stats = new DescriptiveStatistics(Ic);
              varI = stats.getVar();
          } else {
              varI = 0;
          }
          if (Calc != null) {
              stats = new DescriptiveStatistics(Calc);
              varCal = stats.getVar();
          } else {
              varCal = 0;
          }
          if (Pc != null) {
              stats = new DescriptiveStatistics(Pc);
              varP = stats.getVar();
          } else {
              varP = 0;
          }
  
          varP /= varO;
          varCal /= varO;
          varS /= varO;
          varC /= varO;
          varI /= varO;
  
          return true;
      }
focal_method.class_method_signature: StationaryVarianceDecomposition.process(final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)
focal_method.full_signature: public boolean process(final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)
focal_method.identifier: process
focal_method.invocations: log log log log log log calcLongTermTrend subtract subtract getVar getVar getVar getVar getVar getVar
focal_method.modifiers: public
focal_method.parameters: (final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)
focal_method.return: boolean
focal_method.signature: boolean process(final TsData O, final TsData T, final TsData S, final TsData I, final TsData Cal, final TsData others, final boolean mul)