/** * Function to add the instances of one set to the end of another. * * @param from The index of the first that is going to be copied. * @param dest The dataset where the itemsets are going to be copied. * @param num The number of itemsets to copy. */ private void copyItemsets(int from, MyDataset dest, int num) { for (int i = 0; i < num; i++) dest.addItemset(itemset(from + i)); }