* @return KL(mdl1||mdl2)
*/
public static double KL (FactorGraph mdl1, FactorGraph mdl2)
{
JunctionTreeInferencer inf1 = new JunctionTreeInferencer ();
inf1.computeMarginals (mdl1);
JunctionTree jt1 = inf1.lookupJunctionTree ();
JunctionTreeInferencer inf2 = new JunctionTreeInferencer ();
inf2.computeMarginals (mdl2);
JunctionTree jt2 = inf2.lookupJunctionTree ();