⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 discretefunction.html

📁 java bayes的bin文件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<PRE>public <B>DiscreteFunction</B>(<A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A>[]&nbsp;pvs,                        double[]&nbsp;v)</PRE><DL><DD>Simple constructor for DiscreteFunction.<P><DT><B>Parameters:</B><DD><CODE>pvs</CODE> - An array of ProbabilityVariable objects.<DD><CODE>v</CODE> - An array of values for the function.</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="memberOf(int)"><!-- --></A><H3>memberOf</H3><PRE>public boolean <B>memberOf</B>(int&nbsp;index)</PRE><DL><DD>Check whether an index is present in the function.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="evaluate(BayesianNetworks.DiscreteVariable[], int[])"><!-- --></A><H3>evaluate</H3><PRE>public double <B>evaluate</B>(<A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A>[]&nbsp;pvs,                       int[]&nbsp;value_indexes)</PRE><DL><DD>Evaluate a function given a (possibly partial) instantiation of variables through the indexes. Indexes indicate which variables are present in the function to be evaluated, assuming an array of DiscreteVariable objects is present.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pvs</CODE> - The array of DiscreteVariable objects that is used to compute the position indicated by the                      markers.<DD><CODE>value_indexes</CODE> - The markers.</DL></DD></DL><HR><A NAME="get_position_from_indexes(BayesianNetworks.DiscreteVariable[], int[])"><!-- --></A><H3>get_position_from_indexes</H3><PRE>public int <B>get_position_from_indexes</B>(<A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A>[]&nbsp;pvs,                                     int[]&nbsp;variable_indexes)</PRE><DL><DD>Get position in a function from a (possibly partial) instantiation of variables through the indexes.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sum_out(BayesianNetworks.DiscreteVariable[], boolean[])"><!-- --></A><H3>sum_out</H3><PRE>public <A HREF="../BayesianNetworks/DiscreteFunction.html" title="class in BayesianNetworks">DiscreteFunction</A> <B>sum_out</B>(<A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A>[]&nbsp;dvs,                                boolean[]&nbsp;markers)</PRE><DL><DD>Sum out some variables in the function.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>markers</CODE> - A boolean vector indicating which variables are to be summed out. If markers[i] is true, then the                ith variable is to be summed out; if markers[i] is false, the ith variable is not to be summed                out.</DL></DD></DL><HR><A NAME="multiply(BayesianNetworks.DiscreteVariable[], BayesianNetworks.DiscreteFunction)"><!-- --></A><H3>multiply</H3><PRE>public <A HREF="../BayesianNetworks/DiscreteFunction.html" title="class in BayesianNetworks">DiscreteFunction</A> <B>multiply</B>(<A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A>[]&nbsp;dvs,                                 <A HREF="../BayesianNetworks/DiscreteFunction.html" title="class in BayesianNetworks">DiscreteFunction</A>&nbsp;mult)</PRE><DL><DD>Multiply two DiscreteFunction objects.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="normalize()"><!-- --></A><H3>normalize</H3><PRE>public void <B>normalize</B>()</PRE><DL><DD>Normalize a  function (in-place).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="normalize_first()"><!-- --></A><H3>normalize_first</H3><PRE>public void <B>normalize_first</B>()</PRE><DL><DD>Normalize a  function (in-place) assuming that it is a conditional distribution for the first variable<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 method for DiscreteFunction.<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&nbsp;out)</PRE><DL><DD>Print method for DiscreteFunction into a PrintStream.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="number_variables()"><!-- --></A><H3>number_variables</H3><PRE>public int <B>number_variables</B>()</PRE><DL><DD>Return the number of DiscreteVariable objects in the current DiscreteFunction.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="number_values()"><!-- --></A><H3>number_values</H3><PRE>public int <B>number_values</B>()</PRE><DL><DD>Return the number of values in the current DiscreteFunction.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_variables()"><!-- --></A><H3>get_variables</H3><PRE>public <A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A>[] <B>get_variables</B>()</PRE><DL><DD>Get the variables in the current DiscreteFunction.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_variable(int)"><!-- --></A><H3>get_variable</H3><PRE>public <A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A> <B>get_variable</B>(int&nbsp;index)</PRE><DL><DD>Get a variable in the current DiscreteFunction.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - Position of the variable to be returned in the array of DiscreteVariable objects.</DL></DD></DL><HR><A NAME="get_indexes()"><!-- --></A><H3>get_indexes</H3><PRE>public int[] <B>get_indexes</B>()</PRE><DL><DD>Get an array with all the indexes of the DiscreteVariable objects in the current DiscreteFunction.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_index(int)"><!-- --></A><H3>get_index</H3><PRE>public int <B>get_index</B>(int&nbsp;ind)</PRE><DL><DD>Get a DiscreteVariable object with a particular index.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ind</CODE> - Index of the desired DiscreteVariable.</DL></DD></DL><HR><A NAME="get_values()"><!-- --></A><H3>get_values</H3><PRE>public double[] <B>get_values</B>()</PRE><DL><DD>Get all values of the current DiscreteFunction.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="get_value(int)"><!-- --></A><H3>get_value</H3><PRE>public double <B>get_value</B>(int&nbsp;index)</PRE><DL><DD>Get a value of the current DiscreteFunction given the position of the value in the array of values.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="set_value(int, double)"><!-- --></A><H3>set_value</H3><PRE>public void <B>set_value</B>(int&nbsp;index,                      double&nbsp;v)</PRE><DL><DD>Set a value in the current DiscreteFunction given its position in the array of values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The position of the value.<DD><CODE>v</CODE> - The new value.</DL></DD></DL><HR><A NAME="set_values(double[])"><!-- --></A><H3>set_values</H3><PRE>public void <B>set_values</B>(double[]&nbsp;vs)</PRE><DL><DD>Set the values in the DiscreteFunction.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="set_variable(int, BayesianNetworks.DiscreteVariable)"><!-- --></A><H3>set_variable</H3><PRE>public void <B>set_variable</B>(int&nbsp;index,                         <A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks">DiscreteVariable</A>&nbsp;dv)</PRE><DL><DD>Set a DiscreteVariable in the current DiscreteFunction given its position in the array of values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - The position of the value.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>                <a href="http://jbnc.sourceforge.net">                <img src="http://sourceforge.net/sflogo.php?group_id=49871&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo">                </a>            </EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../BayesianNetworks/ConvertInterchangeFormat.html" title="class in BayesianNetworks"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../BayesianNetworks/DiscreteVariable.html" title="class in BayesianNetworks"><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>  &nbsp;&nbsp;<A HREF="DiscreteFunction.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -