Examples of cross()


Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

    PTA_computePrecisionRecall precComputer = new PTA_computePrecisionRecall(fsm);
    precComputer.crossWith(engine);
   
    engine = new PTA_FSMStructure(mach);
    partialPTA = engine.new SequenceSet();partialPTA.setIdentity();
    partialPTA = partialPTA.cross(TestFSMAlgo.buildSet(new String[][] {
        new String[] {"a","b","b","c","c"},
      }));
    precComputer.crossWith(engine);
    assertEquals(1, precComputer.pos_relret);assertEquals(0, precComputer.neg_relret);
    assertEquals(4, precComputer.pos_Rel);assertEquals(0, precComputer.neg_Rel);
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

  public final void testPrecisionRecall_ign2() // a complex structure, most of which gets ignored.
  {
    LearnerGraph mach = new LearnerGraph(TestFSMAlgo.buildGraph("AM-a->BM-a->AM\nBM-b->CM-a->DM","testPrecisionRecall_ign2"),config);
    PTASequenceEngine engine = new PTA_FSMStructure(mach);
    SequenceSet partialPTA = engine.new SequenceSet();partialPTA.setIdentity();
    partialPTA = partialPTA.cross(TestFSMAlgo.buildSet(new String[][] {
        new String[] {"a","a","a","a","b"}, new String[]{"b"}, new String[]{"a", "b", "c"}, new String[]{"a", "b", "a"}
      }));
    PTA_computePrecisionRecall precComputer = new PTA_computePrecisionRecall(fsm);
    precComputer.crossWith(engine);
    precComputer.crossWith(engine);
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

  public final void testPrecisionRecall_ign3() // long test sequence (which does not exist) which is rejected part-way
  {
    LearnerGraph mach = new LearnerGraph(TestFSMAlgo.buildGraph("AM-a->AM-b->AM-c->AM","testPrecisionRecall_ign3"),config);
    PTASequenceEngine engine = new PTA_FSMStructure(mach);
    SequenceSet partialPTA = engine.new SequenceSet();partialPTA.setIdentity();
    partialPTA = partialPTA.cross(TestFSMAlgo.buildSet(new String[][] {
        new String[] {"a","b","b","c","c","d"},
      }));
    PTA_computePrecisionRecall precComputer = new PTA_computePrecisionRecall(fsm);
    precComputer.crossWith(engine);
    precComputer.crossWith(engine);
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

 
  @Test
  public final void test_sequenceSet5_1() // a more complex composition
  {
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    seq.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a","b","c"}
    })).crossWithSet(new LinkedList<String>());
    Map<String,String> actual = getDebugDataMap(en,en.new SequenceSet().cross(TestFSMAlgo.buildList(new String[][] {// here the new sequenceSet is empty, hence whatever I do, there should be no changes
        new String[] {"a","b","c","d"},
        new String[] {"c"}
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

    ));
    SequenceSet seqStart2 = en.new SequenceSet();seqStart2.crossWithSequence(Arrays.asList(
        new String[] {"t"}
    ));
    SequenceSet seqDifferent1 = en.new SequenceSet();seqDifferent1.setIdentity();
    SequenceSet seqDifferent2 = en.new SequenceSet();seqDifferent2.setIdentity();seqDifferent2.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a"}
       
    }));
    equalityTestingHelper(seqStart1,seqStart2,seqDifferent1,seqDifferent2);
  }
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

  /** Tests containsSequence. */
  @Test
  public final void test_containsSequence2()
  {
    SequenceSet seqStart = en.new SequenceSet();seqStart.setIdentity();
    seqStart.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a","a"},
        new String[] {"c"}
    }));
    assertTrue(en.containsSequence(Arrays.asList(new String[]{"c"})));
    assertTrue(en.containsAsLeaf(Arrays.asList(new String[]{"c"})));
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

          }     
        });
      }
    };
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a","a","b"},
        new String[] {"d","d"},
        new String[] {"c"}
       
    })).crossWithSet(Arrays.asList(new String[] {"b","a"})));
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

          }     
        });
      }
    };
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a","a","b"},
        new String[] {"d","d"},
        new String[] {"c"}
       
    })).crossWithSet(Arrays.asList(new String[] {"b","a"})));
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

          }     
        });
      }
    };
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a","a","b"},
        new String[] {"a","a","c","c"},
        new String[] {"d","d"},
        new String[] {"c"}
       
View Full Code Here

Examples of statechum.model.testset.PTASequenceEngine.SequenceSet.cross()

          }     
        });
      }
    };
    SequenceSet seq = en.new SequenceSet();seq.setIdentity();
    Map<String,String> actual = getDebugDataMap(en,seq.cross(TestFSMAlgo.buildList(new String[][] {
        new String[] {"a","a","b","c"}
       
    })).crossWithSet(Arrays.asList(new String[] {"b","a"})));
    vertifyPTA(en, 2, new String[][] {
        new String[] {"a","a","b","c","a"},
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.