📄 bayesnet.html
字号:
public <B>BayesNet</B>(java.lang.String n_n, java.util.Vector p)</PRE><DL><DD>Simple constructor for a BayesNet.<P><DT><B>Parameters:</B><DD><CODE>n_n</CODE> - Name of network.<DD><CODE>p</CODE> - Properties of the network.</DL><HR><A NAME="BayesNet(BayesianNetworks.BayesNet)"><!-- --></A><H3>BayesNet</H3><PRE>public <B>BayesNet</B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> bn)</PRE><DL><DD>Simple constructor for a BayesNet; creates a copy of a given network.<P><DT><B>Parameters:</B><DD><CODE>bn</CODE> - Network to be copied.</DL><HR><A NAME="BayesNet(java.lang.String)"><!-- --></A><H3>BayesNet</H3><PRE>public <B>BayesNet</B>(java.lang.String s) throws <A HREF="../InterchangeFormat/IFException.html" title="class in InterchangeFormat">IFException</A></PRE><DL><DD>Construct a BayesNet from a textual description in a string.<P></DL><HR><A NAME="BayesNet(java.io.InputStream)"><!-- --></A><H3>BayesNet</H3><PRE>public <B>BayesNet</B>(java.io.InputStream istream) throws <A HREF="../InterchangeFormat/IFException.html" title="class in InterchangeFormat">IFException</A></PRE><DL><DD>Construct a BayesNet from a textual description in a stream.<P></DL><HR><A NAME="BayesNet(java.net.URL, java.lang.String)"><!-- --></A><H3>BayesNet</H3><PRE>public <B>BayesNet</B>(java.net.URL context, java.lang.String spec) throws <A HREF="../InterchangeFormat/IFException.html" title="class in InterchangeFormat">IFException</A>, java.io.IOException</PRE><DL><DD>Construct a BayesNet from a textual description in an URL.<P><DT><B>Parameters:</B><DD><CODE>context</CODE> - The URL context as defined in the Java libraries.<DD><CODE>spec</CODE> - The URL spec as defined in the Java libraries.</DL><HR><A NAME="BayesNet(java.net.URL)"><!-- --></A><H3>BayesNet</H3><PRE>public <B>BayesNet</B>(java.net.URL url) throws <A HREF="../InterchangeFormat/IFException.html" title="class in InterchangeFormat">IFException</A>, java.io.IOException</PRE><DL><DD>Construct a BayesNet from a textual description in an URL.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="translate(InterchangeFormat.InterchangeFormat)"><!-- --></A><H3>translate</H3><PRE>protected void <B>translate</B>(<A HREF="../InterchangeFormat/InterchangeFormat.html" title="class in InterchangeFormat">InterchangeFormat</A> ifo)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="process_properties()"><!-- --></A><H3>process_properties</H3><PRE>protected void <B>process_properties</B>()</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="process_probability_variable_properties(int)"><!-- --></A><H3>process_probability_variable_properties</H3><PRE>protected void <B>process_probability_variable_properties</B>(int index)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="process_probability_function_properties(int)"><!-- --></A><H3>process_probability_function_properties</H3><PRE>protected void <B>process_probability_function_properties</B>(int index)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_function(BayesianNetworks.ProbabilityVariable)"><!-- --></A><H3>get_function</H3><PRE>public <A HREF="../BayesianNetworks/ProbabilityFunction.html" title="class in BayesianNetworks">ProbabilityFunction</A> <B>get_function</B>(<A HREF="../BayesianNetworks/ProbabilityVariable.html" title="class in BayesianNetworks">ProbabilityVariable</A> p_v)</PRE><DL><DD>Find the ProbabilityFunction that corresponds to a given ProbabilityVariable. Note: the index of a variable is used by the function, as it is the only reference to the variable that is guaranteed to identify the variable uniquely.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="save_bif(java.io.PrintStream)"><!-- --></A><H3>save_bif</H3><PRE>public void <B>save_bif</B>(java.io.PrintStream out)</PRE><DL><DD>Save a BayesNet object in a stream, in the BIF InterchangeFormat.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="save_embayes(java.io.PrintStream)"><!-- --></A><H3>save_embayes</H3><PRE>public void <B>save_embayes</B>(java.io.PrintStream out)</PRE><DL><DD>Save a BayesNet object in a stream for the EBayes engine.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="save_xml(java.io.PrintStream)"><!-- --></A><H3>save_xml</H3><PRE>public void <B>save_xml</B>(java.io.PrintStream pstream)</PRE><DL><DD>Save a BayesNet object in a stream, in the XMLBIF format version 0.3 (most recent version).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="save_xml_0_2(java.io.PrintStream)"><!-- --></A><H3>save_xml_0_2</H3><PRE>public void <B>save_xml_0_2</B>(java.io.PrintStream pstream)</PRE><DL><DD>Save a BayesNet object in a stream, in the XMLBIF format version 0.2.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="save_bugs(java.io.PrintStream)"><!-- --></A><H3>save_bugs</H3><PRE>public void <B>save_bugs</B>(java.io.PrintStream pstream)</PRE><DL><DD>Save a BayesNet object into a stream, in the BUGS format.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_all_evidence()"><!-- --></A><H3>get_all_evidence</H3><PRE>public java.lang.String[][] <B>get_all_evidence</B>()</PRE><DL><DD>Get all the evidence contained in the network variables.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="index_of_variable(java.lang.String)"><!-- --></A><H3>index_of_variable</H3><PRE>public int <B>index_of_variable</B>(java.lang.String n_vb)</PRE><DL><DD>Determine the position of a variable given its name.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="print()"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>()</PRE><DL><DD>Print a BayesNet in the standard output.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="print(java.io.PrintStream)"><!-- --></A><H3>print</H3><PRE>public void <B>print</B>(java.io.PrintStream out)</PRE><DL><DD>Print a BayesNet in a given stream.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_name()"><!-- --></A><H3>get_name</H3><PRE>public java.lang.String <B>get_name</B>()</PRE><DL><DD>Get the name of the network.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="set_name(java.lang.String)"><!-- --></A><H3>set_name</H3><PRE>public void <B>set_name</B>(java.lang.String n)</PRE><DL><DD>Set the name of the network.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_properties()"><!-- --></A><H3>get_properties</H3><PRE>public java.util.Vector <B>get_properties</B>()</PRE><DL><DD>Get the properties.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="set_properties(java.util.Vector)"><!-- --></A><H3>set_properties</H3><PRE>public void <B>set_properties</B>(java.util.Vector prop)</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -