// and check that at least one factors' belief has changed
// from the choice at zero iterations.
for (Iterator it = grid.factorsIterator (); it.hasNext();) {
Factor f = (Factor) it.next ();
Factor marg = trp.lookupMarginal (f.varSet ());// test no exception thrown
if (!marg.almostEquals (f.duplicate ().normalize ())) {
oneIsDifferent = true;
}
}
assertTrue (oneIsDifferent);