Exemplo n.º 1
0
  // @Test
  public void demo0() {
    TsData s = Data.X.log();
    double[] x = new double[] {0, 0};

    TestFunctionInstance rslt = new TestFunctionInstance(s, new DataBlock(x));
    rslt.compute();
    System.out.println("X0");
    printRslt(rslt);
  }
Exemplo n.º 2
0
  // @Test
  public void demoRnd0() {
    TsData s = rnd;
    double[] x = new double[] {0};

    TestFunctionInstance rslt = new TestFunctionInstance(s, new DataBlock(x));
    rslt.compute();
    System.out.println("Rnd0");
    printRslt(rslt);
  }
Exemplo n.º 3
0
 void printRslt(TestFunctionInstance rslt) {
   System.out.println(rslt.getParameters());
   System.out.println(rslt.ll.getLikelihood().getLogLikelihood());
   System.out.println();
   double[] scmp = rslt.scomponent();
   for (int i = 0; i < scmp.length; ++i) {
     System.out.println(scmp[i]);
   }
   System.out.println();
 }