📄 inferencegraph.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_04) on Tue Jun 22 19:42:08 EDT 2004 --><TITLE>InferenceGraph (JavaBayes API)</TITLE><META NAME="keywords" CONTENT="InferenceGraphs.InferenceGraph class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="InferenceGraph (JavaBayes API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>JavaBayes API</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html" target="_top"><B>FRAMES</B></A> <A HREF="InferenceGraph.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">InferenceGraphs</FONT><BR>Class InferenceGraph</H2><PRE>java.lang.Object <IMG SRC="../resources/inherit.gif" ALT="extended by"><B>InferenceGraphs.InferenceGraph</B></PRE><HR><DL><DT>public class <B>InferenceGraph</B><DT>extends java.lang.Object</DL><P><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#CONSTANT_DENSITY_BOUNDED">CONSTANT_DENSITY_BOUNDED</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#CONSTANT_DENSITY_RATIO">CONSTANT_DENSITY_RATIO</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#EPSILON_CONTAMINATED">EPSILON_CONTAMINATED</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#EXPECTATION">EXPECTATION</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#EXPLANATION">EXPLANATION</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#FULL_EXPLANATION">FULL_EXPLANATION</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#MARGINAL_POSTERIOR">MARGINAL_POSTERIOR</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#NO_CREDAL_SET">NO_CREDAL_SET</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#SENSITIVITY_ANALYSIS">SENSITIVITY_ANALYSIS</A></B></CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#TOTAL_VARIATION">TOTAL_VARIATION</A></B></CODE><BR> </TD></TR></TABLE> <!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#InferenceGraph()">InferenceGraph</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#InferenceGraph(BayesianNetworks.BayesNet)">InferenceGraph</A></B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> b_n)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#InferenceGraph(java.lang.String)">InferenceGraph</A></B>(java.lang.String filename)</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#InferenceGraph(java.net.URL)">InferenceGraph</A></B>(java.net.URL url)</CODE><BR> </TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#add_network_property(java.lang.String)">add_network_property</A></B>(java.lang.String prop)</CODE><BR> Add a property to the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#change_values(InferenceGraphs.InferenceGraphNode, java.lang.String[])">change_values</A></B>(<A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> node, java.lang.String[] values)</CODE><BR> Change the values of a variable.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#check_name(java.lang.String)">check_name</A></B>(java.lang.String n)</CODE><BR> Determine whether or not a name is valid and/or repeated.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#create_arc(InferenceGraphs.InferenceGraphNode, InferenceGraphs.InferenceGraphNode)">create_arc</A></B>(<A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> parent, <A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> child)</CODE><BR> Create an arc from parent to child.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#create_node(int, int)">create_node</A></B>(int x, int y)</CODE><BR> Create a new node in the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#delete_arc(InferenceGraphs.InferenceGraphNode, InferenceGraphs.InferenceGraphNode)">delete_arc</A></B>(<A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> parent, <A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> child)</CODE><BR> Delete the arc from parent to child.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#delete_node(InferenceGraphs.InferenceGraphNode)">delete_node</A></B>(<A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> node)</CODE><BR> Delete a node in the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#elements()">elements</A></B>()</CODE><BR> Get the nodes in the network as an Enumeration object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../QuasiBayesianNetworks/QuasiBayesNet.html" title="class in QuasiBayesianNetworks">QuasiBayesNet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#get_bayes_net()">get_bayes_net</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> double</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#get_global_neighborhood_parameter()">get_global_neighborhood_parameter</A></B>()</CODE><BR> Get the parameter for the global neighborhood modeled by the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#get_global_neighborhood_type()">get_global_neighborhood_type</A></B>()</CODE><BR> Get the type of global neighborhood modeled by the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#get_name()">get_name</A></B>()</CODE><BR> Get the name of the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#get_network_properties()">get_network_properties</A></B>()</CODE><BR> Get the properties of the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Vector</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#get_nodes()">get_nodes</A></B>()</CODE><BR> Get the nodes in the network.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#hasCycle(InferenceGraphs.InferenceGraphNode, InferenceGraphs.InferenceGraphNode)">hasCycle</A></B>(<A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> bottom_node, <A HREF="../InferenceGraphs/InferenceGraphNode.html" title="class in InferenceGraphs">InferenceGraphNode</A> head_node)</CODE><BR> Determines whether the connection of bottom_node to head_node would cause the network to have a cycle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#number_nodes()">number_nodes</A></B>()</CODE><BR> Get the number of variables in the network</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#print_bayes_net(java.io.PrintStream)">print_bayes_net</A></B>(java.io.PrintStream out)</CODE><BR> Print the QuasiBayesNet.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#print_expectation(java.io.PrintStream, java.lang.String, boolean, boolean)">print_expectation</A></B>(java.io.PrintStream pstream, java.lang.String queried_variable, boolean do_compute_clusters, boolean show_bucket_tree)</CODE><BR> Print information about a posterior expectation for the Bayesian network into the given PrintStream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#print_explanation(java.io.PrintStream, boolean)">print_explanation</A></B>(java.io.PrintStream pstream, boolean show_bucket_tree)</CODE><BR> Print information about an explanation for the Bayesian network into the given PrintStream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#print_full_explanation(java.io.PrintStream, boolean)">print_full_explanation</A></B>(java.io.PrintStream pstream, boolean show_bucket_tree)</CODE><BR> Print information about a full explanation for the Bayesian network into the given PrintStream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#print_marginal(java.io.PrintStream, java.lang.String, boolean, boolean)">print_marginal</A></B>(java.io.PrintStream pstream, java.lang.String queried_variable, boolean do_compute_clusters, boolean show_bucket_tree)</CODE><BR> Print information about a posterior marginal for the Bayesian network into the given PrintStream.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../InferenceGraphs/InferenceGraph.html#print_sensitivity_analysis(java.io.PrintStream)">print_sensitivity_analysis</A></B>(java.io.PrintStream pstream)</CODE><BR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -