|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTrees
public final class Trees
A collection of static routines for creation and conversion of the various structured tree representations.
Field Summary | |
---|---|
static boolean |
FLAG_DEBUG
|
static CostFunction |
SUM_SIZE_COST
A cost function which is the sum of the sizes(# of instantiations) of the two cliques. |
static CostFunction |
UNION_SIZE_COST
A cost function which is the size of the union of the variables in the cluster. |
Method Summary | |
---|---|
static EliminationTree |
eliminationTree(TableIndex[] leaves,
List eliminationOrder)
Generates an elimination tree. |
static EliminationTree |
recursiveEliminationTree(TableIndex[] leaves,
List eliminationOrder)
|
static JoinTree |
traditionalJoinTree(BeliefNetwork bn,
int reps,
Random seed)
|
static JoinTree |
traditionalJoinTree(BeliefNetwork bn,
List eliminationOrder)
Generates a traditional JoinTree using the method described in [1]. |
static JoinTree |
traditionalJoinTree(Graph moralGraph,
List eliminationOrder,
CostFunction edgeCost)
Warning: It is safe to use this method only in the absence of a BeliefNetwork. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean FLAG_DEBUG
public static final CostFunction UNION_SIZE_COST
public static final CostFunction SUM_SIZE_COST
Method Detail |
---|
public static EliminationTree eliminationTree(TableIndex[] leaves, List eliminationOrder)
potentials
- The potentials that form the basis for it.eliminationOrder
- A list of variables in the order that they should be removed.potentialAssignments
- A Reference, which if non null will point to a Map which maps
from leaf nodes to the potential assigned to it.public static EliminationTree recursiveEliminationTree(TableIndex[] leaves, List eliminationOrder)
public static JoinTree traditionalJoinTree(BeliefNetwork bn, int reps, Random seed)
public static JoinTree traditionalJoinTree(BeliefNetwork bn, List eliminationOrder)
public static JoinTree traditionalJoinTree(Graph moralGraph, List eliminationOrder, CostFunction edgeCost)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |