|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectRCUtilities
public class RCUtilities
This class contains utility functions for RC objects.
Method Summary | |
---|---|
static Collection |
calculateCutsetFromChildren(RCNodeInternalBinaryCache nd,
Collection acutset)
Calculates the cutset of a variable based only on its children. |
static int |
clusterSize(RCNode rt)
|
static void |
computeLeafs(RCNode rt,
Collection ret)
Compute leaf nodes in the subtree rooted at rt (will include rt if it is a leaf node). |
static void |
computeParentsInTree(RCNode rt,
Map ret)
When finished, ret will include a mapping from all nodes to their parents in the subtree rooted at rt. |
static void |
getElimOrder(RCNode rt,
ArrayList ord)
The ArrayList ord will contain the vars in an elimination order determined by the subtree rooted at rt (it is not unique). |
static void |
getElimOrderUnInitialized(RCNode rt,
Collection acutset,
ArrayList ord)
The ArrayList ord will contain the vars in an elimination order determined by the subtree rooted at rt (it is not unique). |
static double |
logsub(double lna,
double lnb)
Compute ln(a-b) from ln(a) and ln(b) using the log sub equation. |
static double |
logsub2(double lna,
double lnb)
Compute ln(a-b) from ln(a) and ln(b) using the log sub equation. |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final void computeParentsInTree(RCNode rt, Map ret)
public static final void computeLeafs(RCNode rt, Collection ret)
public static final Collection calculateCutsetFromChildren(RCNodeInternalBinaryCache nd, Collection acutset)
public static final void getElimOrder(RCNode rt, ArrayList ord)
public static final void getElimOrderUnInitialized(RCNode rt, Collection acutset, ArrayList ord)
public static final int clusterSize(RCNode rt)
public static final double logsub(double lna, double lnb)
public static final double logsub2(double lna, double lnb)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |