📄 probabilityvariable.html
字号:
<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="../BayesianNetworks/ProbabilityVariable.html#remove_property(java.lang.String)">remove_property</A></B>(java.lang.String prop)</CODE><BR> Remove a property from the current ProbabilityVariable.</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="../BayesianNetworks/ProbabilityVariable.html#save_xml_0_3(java.io.PrintStream)">save_xml_0_3</A></B>(java.io.PrintStream out)</CODE><BR> Save the contents of a ProbabilityVariable object into a PrintStream using the XMLBIF v0.3 format.</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="../BayesianNetworks/ProbabilityVariable.html#save_xml(java.io.PrintStream)">save_xml</A></B>(java.io.PrintStream out)</CODE><BR> Save the contents of a ProbabilityVariable object into a 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="../BayesianNetworks/ProbabilityVariable.html#set_explanation_value(int)">set_explanation_value</A></B>(int i)</CODE><BR> Set the variable as explanatory with a given value.</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="../BayesianNetworks/ProbabilityVariable.html#set_index(int)">set_index</A></B>(int ind)</CODE><BR> Set the index of the variable.</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="../BayesianNetworks/ProbabilityVariable.html#set_invalid_index()">set_invalid_index</A></B>()</CODE><BR> Set the index of the current ProbabilityVariable as invalid (variable is not observed).</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="../BayesianNetworks/ProbabilityVariable.html#set_invalid_observed_index()">set_invalid_observed_index</A></B>()</CODE><BR> Set the ProbabilityVariable as not observed..</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="../BayesianNetworks/ProbabilityVariable.html#set_observed_value(java.lang.String)">set_observed_value</A></B>(java.lang.String v)</CODE><BR> Set a value of the current ProbabilityVariable as observed.</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="../BayesianNetworks/ProbabilityVariable.html#set_properties(java.util.Vector)">set_properties</A></B>(java.util.Vector prop)</CODE><BR> Set the properties.</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="../BayesianNetworks/ProbabilityVariable.html#set_type(int)">set_type</A></B>(int t)</CODE><BR> Set the type of the current ProbabilityVariable.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_BayesianNetworks.DiscreteVariable"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class BayesianNetworks.<A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../BayesianNetworks/DiscreteVariable.html#get_index()">get_index</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#get_name()">get_name</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#get_numeric_values()">get_numeric_values</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#get_value(int)">get_value</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#get_values()">get_values</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#index_of_value(java.lang.String)">index_of_value</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#number_values()">number_values</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#print()">print</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#set_name(java.lang.String)">set_name</A>, <A HREF="../BayesianNetworks/DiscreteVariable.html#set_values(java.lang.String[])">set_values</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="type"><!-- --></A><H3>type</H3><PRE>protected int <B>type</B></PRE><DL><DL></DL></DL><HR><A NAME="observed_index"><!-- --></A><H3>observed_index</H3><PRE>protected int <B>observed_index</B></PRE><DL><DL></DL></DL><HR><A NAME="explanation_index"><!-- --></A><H3>explanation_index</H3><PRE>protected int <B>explanation_index</B></PRE><DL><DL></DL></DL><HR><A NAME="properties"><!-- --></A><H3>properties</H3><PRE>protected java.util.Vector <B>properties</B></PRE><DL><DL></DL></DL><HR><A NAME="bn"><!-- --></A><H3>bn</H3><PRE>protected <A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> <B>bn</B></PRE><DL><DL></DL></DL><HR><A NAME="CHANCE"><!-- --></A><H3>CHANCE</H3><PRE>public static final int <B>CHANCE</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#BayesianNetworks.ProbabilityVariable.CHANCE">Constant Field Values</A></DL></DL><HR><A NAME="TRANSPARENT"><!-- --></A><H3>TRANSPARENT</H3><PRE>public static final int <B>TRANSPARENT</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../constant-values.html#BayesianNetworks.ProbabilityVariable.TRANSPARENT">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ProbabilityVariable()"><!-- --></A><H3>ProbabilityVariable</H3><PRE>public <B>ProbabilityVariable</B>()</PRE><DL><DD>Default constructor for a ProbabilityVariable.<P></DL><HR><A NAME="ProbabilityVariable(BayesianNetworks.BayesNet, java.lang.String, java.util.Vector)"><!-- --></A><H3>ProbabilityVariable</H3><PRE>public <B>ProbabilityVariable</B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> b_n, java.lang.String n_vb, java.util.Vector p)</PRE><DL><DD>Constructor for ProbabilityVariable.<P></DL><HR><A NAME="ProbabilityVariable(BayesianNetworks.BayesNet, java.lang.String, int, java.lang.String[], java.util.Vector)"><!-- --></A><H3>ProbabilityVariable</H3><PRE>public <B>ProbabilityVariable</B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> b_n, java.lang.String n_vb, int vi, java.lang.String[] vl, java.util.Vector p)</PRE><DL><DD>Constructor for ProbabilityVariable.<P></DL><HR><A NAME="ProbabilityVariable(BayesianNetworks.ProbabilityVariable)"><!-- --></A><H3>ProbabilityVariable</H3><PRE>public <B>ProbabilityVariable</B>(<A HREF="../BayesianNetworks/ProbabilityVariable.html" title="class in BayesianNetworks">ProbabilityVariable</A> pv)</PRE><DL><DD>Constructor for ProbabilityVariable.<P></DL><HR><A NAME="ProbabilityVariable(BayesianNetworks.BayesNet, BayesianNetworks.ProbabilityVariable)"><!-- --></A><H3>ProbabilityVariable</H3><PRE>public <B>ProbabilityVariable</B>(<A HREF="../BayesianNetworks/BayesNet.html" title="class in BayesianNetworks">BayesNet</A> b_n, <A HREF="../BayesianNetworks/ProbabilityVariable.html" title="class in BayesianNetworks">ProbabilityVariable</A> pv)</PRE><DL><DD>Constructor for ProbabilityVariable.<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="save_xml_0_3(java.io.PrintStream)"><!-- --></A><H3>save_xml_0_3</H3><PRE>public void <B>save_xml_0_3</B>(java.io.PrintStream out)</PRE><DL><DD>Save the contents of a ProbabilityVariable object into a PrintStream using the XMLBIF v0.3 format.<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 out)</PRE><DL><DD>Save the contents of a ProbabilityVariable object into a PrintStream.<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 method for ProbabilityVariable.<P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../BayesianNetworks/DiscreteVariable.html#print(java.io.PrintStream)">print</A></CODE> in class <CODE><A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_type()"><!-- --></A><H3>get_type</H3><PRE>public int <B>get_type</B>()</PRE><DL><DD>Get the type of the ProbabilityVariable.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -