bbn
Class BBNUtil

java.lang.Object
  |
  +--bbn.BBNUtil

public class BBNUtil
extends java.lang.Object

Title: BBN Utilities Description: Utilities such as reorder a BBN... Copyright: Copyright (c) 2002 Company: KDD / cis.ksu.edu


Constructor Summary
BBNUtil()
           
 
Method Summary
static java.util.Vector bitsOrderToStringOrder(BBN network, java.lang.String bitsorder)
          bitsOrderToStringOrder(): input: BBN, "[6, 3, 1, 7, 5, 2, 0, 4]" output: vector of strings(node names) in the same order as the bitsorder
static double computeRMSE(NodeManager b1, NodeManager b2)
           
static BBN DagLayout(BBN network, java.awt.Point original)
          unfinished
static boolean inlist(java.util.Vector parents, java.util.Vector finishedlist)
          inlist checks if all elements in parents are in finishedlist, then return true it's called by reorder()
static BBN reorder(BBN network)
          reorder reorders all nodes in BBN by topological order i.e., in the order only "upstreams" nodes can be candidate parents of "downstreams" nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BBNUtil

public BBNUtil()
Method Detail

inlist

public static boolean inlist(java.util.Vector parents,
                             java.util.Vector finishedlist)
inlist checks if all elements in parents are in finishedlist, then return true it's called by reorder()
Parameters:
parents - - parents node names, a vector of strings
finishedlist - - the orderedlist of node names
Returns:
in - ture if parents is in finishedlist, false if not

reorder

public static BBN reorder(BBN network)
reorder reorders all nodes in BBN by topological order i.e., in the order only "upstreams" nodes can be candidate parents of "downstreams" nodes

DagLayout

public static BBN DagLayout(BBN network,
                            java.awt.Point original)
unfinished

bitsOrderToStringOrder

public static java.util.Vector bitsOrderToStringOrder(BBN network,
                                                      java.lang.String bitsorder)
bitsOrderToStringOrder(): input: BBN, "[6, 3, 1, 7, 5, 2, 0, 4]" output: vector of strings(node names) in the same order as the bitsorder
Parameters:
-  

computeRMSE

public static double computeRMSE(NodeManager b1,
                                 NodeManager b2)