cc.mallet.grmm.inference.gbp
Class ClusterVariationalRegionGenerator.ByFactorRegionComputer

java.lang.Object
  extended by cc.mallet.grmm.inference.gbp.ClusterVariationalRegionGenerator.ByFactorRegionComputer
All Implemented Interfaces:
ClusterVariationalRegionGenerator.BaseRegionComputer
Enclosing class:
ClusterVariationalRegionGenerator

public static class ClusterVariationalRegionGenerator.ByFactorRegionComputer
extends java.lang.Object
implements ClusterVariationalRegionGenerator.BaseRegionComputer

Region computer where each top-level region consists of a single factor node. If the model is pairwise, this is equivalent to using the Bethe free energy.


Constructor Summary
ClusterVariationalRegionGenerator.ByFactorRegionComputer()
           
 
Method Summary
 java.util.List computeBaseRegions(FactorGraph mdl)
          Returns a list of top-level regions for use in the cluster variational method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClusterVariationalRegionGenerator.ByFactorRegionComputer

public ClusterVariationalRegionGenerator.ByFactorRegionComputer()
Method Detail

computeBaseRegions

public java.util.List computeBaseRegions(FactorGraph mdl)
Description copied from interface: ClusterVariationalRegionGenerator.BaseRegionComputer
Returns a list of top-level regions for use in the cluster variational method.

Specified by:
computeBaseRegions in interface ClusterVariationalRegionGenerator.BaseRegionComputer
Parameters:
mdl - An undirected model.
Returns:
A list of regions. No region in the list may subsume another.