ls
Class Domain

java.lang.Object
  |
  +--ls.Domain

public class Domain
extends java.lang.Object

Title: ls Description: This class servers as the interface of LS algorithm Hopegully it will make other programmer use LS a little easier Copyright: Copyright (c) 2001 Company:


Constructor Summary
Domain()
           
Domain(java.lang.String xmlfilename)
          Construtor, load the network from an XMLBIF file
 
Method Summary
 void compile()
          This function do the moralization, triangulation, and generate the permentant tree of cliques for message passing
 java.util.Vector getMPE()
           
 java.util.Vector getQueryProbabilities()
          This function returns the probabilities of all states of all query nodes in a Vector of vectors
 void loadEvidenceFromFile(java.lang.String evidencefilename)
          This function gets the evidence information from evidence file The evidence has the following format(1--> evidence nodes, 0-->query nodes): 1 0 0 0 0 0 0 1 a|b|c|d|e|f|g|h a1|b1|c1|d1|e1|f1|g2|h1
 void propagation()
          This function do the propagation by two way message passing and revise beliefs of all nodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Domain

public Domain()

Domain

public Domain(java.lang.String xmlfilename)
Construtor, load the network from an XMLBIF file
Method Detail

loadEvidenceFromFile

public void loadEvidenceFromFile(java.lang.String evidencefilename)
This function gets the evidence information from evidence file The evidence has the following format(1--> evidence nodes, 0-->query nodes): 1 0 0 0 0 0 0 1 a|b|c|d|e|f|g|h a1|b1|c1|d1|e1|f1|g2|h1

compile

public void compile()
This function do the moralization, triangulation, and generate the permentant tree of cliques for message passing

propagation

public void propagation()
This function do the propagation by two way message passing and revise beliefs of all nodes

getQueryProbabilities

public java.util.Vector getQueryProbabilities()
This function returns the probabilities of all states of all query nodes in a Vector of vectors

getMPE

public java.util.Vector getMPE()