for (int fi = 0; fi < baseFg.factors().size(); fi++) {
fg.multiplyBy (baseFg.getFactor (fi));
}
assertEquals (val, fg.logValue (assn), 1e-5);
}
long time1 = timing.elapsedTime ();
timing.tick ("No-expansion time");
for (int rep = 0; rep < numReps; rep++) {
FactorGraph fg = new FactorGraph ();
for (int fi = 0; fi < baseFg.factors().size(); fi++) {