@Test(expected = Test.None.class) public void testKosarak() throws IOException { System.out.println("kosarak"); FPTree tree = FPTree.of(1500, () -> ItemSetTestData.read("transaction/kosarak.dat")); TotalSupportTree ttree = new TotalSupportTree(tree); assertEquals(219725, ttree.stream().count()); }
public Stream<ItemSet> stream() { return StreamSupport.stream(spliterator(), false); }
TotalSupportTree implements Iterable<ItemSet> { public Stream<ItemSet> stream() { return StreamSupport.stream(spliterator(), false); } }
TotalSupportTree implements Iterable<ItemSet> { public Stream<ItemSet> stream() { return StreamSupport.stream(spliterator(), false); } TotalSupportTree(FPTree tree); }
TotalSupportTree implements Iterable<ItemSet> { public Stream<ItemSet> stream() { return StreamSupport.stream(spliterator(), false); } TotalSupportTree(FPTree tree); int size(); @Override Iterator<ItemSet> iterator(); int getSupport(int[] itemset); Stream<ItemSet> stream(); }
TotalSupportTree implements Iterable<ItemSet> { public Stream<ItemSet> stream() { return StreamSupport.stream(spliterator(), false); } TotalSupportTree(FPTree tree); int size(); @Override Iterator<ItemSet> iterator(); int getSupport(int[] itemset); Stream<ItemSet> stream();  }