cc.mallet.grmm.inference
Interface TRP.TreeFactory

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
TRP.AlmostRandomTreeFactory, TRP.TreeListFactory
Enclosing class:
TRP

public static interface TRP.TreeFactory
extends java.io.Serializable

Interface for tree-generation strategies for TRP.

TRP works by repeatedly doing exact inference over spanning tree of the original graph. But the trees can be chosen arbitrarily. In fact, they don't need to be spanning trees; any acyclic substructure will do. Users of TRP can tell it which strategy to use by passing in an implementation of TreeFactory.


Method Summary
 Tree nextTree(FactorGraph mdl)
           
 

Method Detail

nextTree

Tree nextTree(FactorGraph mdl)