ACRF.UnrolledVarSet clique = (ACRF.UnrolledVarSet) it.next();
int tidx = clique.getTemplate().index;
if (tidx == -1) continue;
Factor ptl = unrolled.factorOf (clique);
double logZ = Math.log (ptl.sum ());
// for each assigment to the clique
// xxx SLOW this will need to be sparsified
AssignmentIterator assnIt = clique.assignmentIterator ();
int i = 0;