Constructor Summary |
Utils()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Utils
public Utils()
lookupMinusLogZ
public static double lookupMinusLogZ(FactorGraph mdl,
Inferencer inf)
- Returns ths value of -log Z in mdl according to the given inferencer.
If inf is exact, the answer will be exact; otherwise the answer will be
approximation
- Parameters:
mdl
- inf
- An inferencer. inf.computeMarginals (mdl) must already have
been called.
- Returns:
- The value of -logZ
localMagnetization
public static double localMagnetization(Inferencer inferencer,
Variable var)
allL1MarginalDistance
public static double[] allL1MarginalDistance(FactorGraph mdl,
Inferencer inf1,
Inferencer inf2)
avgL1MarginalDistance
public static double avgL1MarginalDistance(FactorGraph mdl,
Inferencer inf1,
Inferencer inf2)
maxL1MarginalDistance
public static double maxL1MarginalDistance(FactorGraph mdl,
Inferencer inf1,
Inferencer inf2)
toSizesArray
public static int[] toSizesArray(Variable[] vars)
defaultIntersection
public static VarSet defaultIntersection(VarSet v1,
VarSet v2)