Index<IntTuple> index = new HashIndex<IntTuple>();
for (int c = 0; c < numClasses; c++) {
index.add(new IntUni(c));
for (int f = 0; f < numFeatures; f++) {
for (int val = 0; val < numValues[f]; val++) {
index.add(new IntTriple(c, f, val));
}
}
}
return index;