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

📄 editablebayesnet.html

📁 数据挖掘的最常用工具。由于开源
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<DT><B>Parameters:</B><DD><CODE>sNodeName</CODE> - name of the node to get index for</DL></DD></DL><HR><A NAME="getNode(java.lang.String)"><!-- --></A><H3>getNode</H3><PRE>public int <B>getNode</B>(java.lang.String&nbsp;sNodeName)            throws java.lang.Exception</PRE><DL><DD>returns index of node with given name. Throws exception if no such node exists<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sNodeName</CODE> - name of the node to get index for<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="addNode(java.lang.String, int)"><!-- --></A><H3>addNode</H3><PRE>public void <B>addNode</B>(java.lang.String&nbsp;sName,                    int&nbsp;nCardinality)             throws java.lang.Exception</PRE><DL><DD>Add new node to the network, initializing instances, parentsets, distributions. Used for manual manipulation of the Bayesian network.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sName</CODE> - name of the node. If the name already exists, an x is appended            to the name<DD><CODE>nCardinality</CODE> - number of values for this node<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="addNode(java.lang.String, int, int, int)"><!-- --></A><H3>addNode</H3><PRE>public void <B>addNode</B>(java.lang.String&nbsp;sName,                    int&nbsp;nCardinality,                    int&nbsp;nPosX,                    int&nbsp;nPosY)             throws java.lang.Exception</PRE><DL><DD>Add node to network at a given position, initializing instances, parentsets, distributions. Used for manual manipulation of the Bayesian network.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sName</CODE> - name of the node. If the name already exists, an x is appended            to the name<DD><CODE>nCardinality</CODE> - number of values for this node<DD><CODE>nPosX</CODE> - x-coordiate of the position to place this node<DD><CODE>nPosY</CODE> - y-coordiate of the position to place this node<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="deleteNode(java.lang.String)"><!-- --></A><H3>deleteNode</H3><PRE>public void <B>deleteNode</B>(java.lang.String&nbsp;sName)                throws java.lang.Exception</PRE><DL><DD>Delete node from the network, updating instances, parentsets, distributions Conditional distributions are condensed by taking the values for the target node to be its first value. Used for manual manipulation of the Bayesian network.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sName</CODE> - name of the node. If the name does not exists an exception is            thrown<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="deleteNode(int)"><!-- --></A><H3>deleteNode</H3><PRE>public void <B>deleteNode</B>(int&nbsp;nTargetNode)                throws java.lang.Exception</PRE><DL><DD>Delete node from the network, updating instances, parentsets, distributions Conditional distributions are condensed by taking the values for the target node to be its first value. Used for manual manipulation of the Bayesian network.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>nTargetNode</CODE> - index of the node to delete.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="deleteSelection(weka.core.FastVector)"><!-- --></A><H3>deleteSelection</H3><PRE>public void <B>deleteSelection</B>(<A HREF="../../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;nodes)</PRE><DL><DD>Delete nodes with indexes in selection from the network, updating instances, parentsets, distributions Conditional distributions are condensed by taking the values for the target node to be its first value. Used for manual manipulation of the Bayesian network.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>nodes</CODE> - array of indexes of nodes to delete.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="getContent(org.w3c.dom.Element)"><!-- --></A><H3>getContent</H3><PRE>public java.lang.String <B>getContent</B>(org.w3c.dom.Element&nbsp;node)</PRE><DL><DD>XML helper function. Returns all TEXT children of the given node in one string. Between the node values new lines are inserted.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>node</CODE> - the node to return the content for<DT><B>Returns:</B><DD>the content of the node</DL></DD></DL><HR><A NAME="paste(java.lang.String)"><!-- --></A><H3>paste</H3><PRE>public void <B>paste</B>(java.lang.String&nbsp;sXML)           throws java.lang.Exception</PRE><DL><DD>Apply paste operation with XMLBIF fragment. This adds nodes in the XMLBIF fragment to the network, together with its parents. First, paste in test mode to verify no problems occur, then execute paste operation. If a problem occurs (e.g. parent does not exist) then a exception is thrown.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sXML</CODE> - XMLBIF fragment to paste into the network<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="addArc(java.lang.String, java.lang.String)"><!-- --></A><H3>addArc</H3><PRE>public void <B>addArc</B>(java.lang.String&nbsp;sParent,                   java.lang.String&nbsp;sChild)            throws java.lang.Exception</PRE><DL><DD>Add arc between two nodes Distributions are updated by duplication for every value of the parent node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sParent</CODE> - name of the parent node<DD><CODE>sChild</CODE> - name of the child node<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if parent or child cannot be found in network</DL></DD></DL><HR><A NAME="addArc(int, int)"><!-- --></A><H3>addArc</H3><PRE>public void <B>addArc</B>(int&nbsp;nParent,                   int&nbsp;nChild)            throws java.lang.Exception</PRE><DL><DD>Add arc between two nodes Distributions are updated by duplication for every value of the parent node.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>nParent</CODE> - index of the parent node<DD><CODE>nChild</CODE> - index of the child node<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="addArc(java.lang.String, weka.core.FastVector)"><!-- --></A><H3>addArc</H3><PRE>public void <B>addArc</B>(java.lang.String&nbsp;sParent,                   <A HREF="../../../../weka/core/FastVector.html" title="class in weka.core">FastVector</A>&nbsp;nodes)            throws java.lang.Exception</PRE><DL><DD>Add arc between parent node and each of the nodes in a given list. Distributions are updated as above.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sParent</CODE> - name of the parent node<DD><CODE>nodes</CODE> - array of indexes of child nodes<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="deleteArc(java.lang.String, java.lang.String)"><!-- --></A><H3>deleteArc</H3><PRE>public void <B>deleteArc</B>(java.lang.String&nbsp;sParent,                      java.lang.String&nbsp;sChild)               throws java.lang.Exception</PRE><DL><DD>Delete arc between two nodes. Distributions are updated by condensing for the parent node taking its first value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sParent</CODE> - name of the parent node<DD><CODE>sChild</CODE> - name of the child node<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if parent or child cannot be found in network</DL></DD></DL><HR><A NAME="deleteArc(int, int)"><!-- --></A><H3>deleteArc</H3><PRE>public void <B>deleteArc</B>(int&nbsp;nParent,                      int&nbsp;nChild)               throws java.lang.Exception</PRE><DL><DD>Delete arc between two nodes. Distributions are updated by condensing for the parent node taking its first value.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>nParent</CODE> - index of the parent node<DD><CODE>nChild</CODE> - index of the child node<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="setDistribution(java.lang.String, double[][])"><!-- --></A><H3>setDistribution</H3><PRE>public void <B>setDistribution</B>(java.lang.String&nbsp;sName,                            double[][]&nbsp;P)                     throws java.lang.Exception</PRE><DL><DD>specify distribution of a node<P><DD><DL><DT><B>Parameters:</B><DD><CODE>sName</CODE> - name of the node to specify distribution for<DD><CODE>P</CODE> - matrix representing distribution with P[i][j] = P(node = j | parent configuration = i)<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if parent or child cannot be found in network</DL></DD></DL><HR><A NAME="setDistribution(int, double[][])"><!-- --></A><H3>setDistribution</H3><PRE>public void <B>setDistribution</B>(int&nbsp;nTargetNode,                            double[][]&nbsp;P)                     throws java.lang.Exception</PRE><DL><DD>specify distribution of a node<P><DD><DL><DT><B>Parameters:</B><DD><CODE>nTargetNode</CODE> - index of the node to specify distribution for<DD><CODE>P</CODE> - matrix representing distribution with P[i][j] = P(node = j | parent configuration = i)<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if parent or child cannot be found in network</DL></DD></DL><HR>

⌨️ 快捷键说明

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