ballnode.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 928 行 · 第 1/3 页

HTML
928
字号
<A NAME="getPivot()"><!-- --></A><H3>getPivot</H3><PRE>public <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>getPivot</B>()</PRE><DL><DD>Returns the pivot/centre of the node's ball.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The ball pivot/centre.</DL></DD></DL><HR><A NAME="setRadius(double)"><!-- --></A><H3>setRadius</H3><PRE>public void <B>setRadius</B>(double&nbsp;radius)</PRE><DL><DD>Sets the radius of the node's  ball.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>radius</CODE> - The radius of the nodes ball.</DL></DD></DL><HR><A NAME="getRadius()"><!-- --></A><H3>getRadius</H3><PRE>public double <B>getRadius</B>()</PRE><DL><DD>Returns the radius of the node's ball.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Radius of node's ball.</DL></DD></DL><HR><A NAME="numInstances()"><!-- --></A><H3>numInstances</H3><PRE>public int <B>numInstances</B>()</PRE><DL><DD>Returns the number of instances in the hyper-spherical region of this node.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The number of instances in the node.</DL></DD></DL><HR><A NAME="calcCentroidPivot(int[], weka.core.Instances)"><!-- --></A><H3>calcCentroidPivot</H3><PRE>public static <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>calcCentroidPivot</B>(int[]&nbsp;instList,                                         <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;insts)</PRE><DL><DD>Calculates the centroid pivot of a node. The node is given in the form of an indices array that contains the  indices of the points inside the node.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instList</CODE> - The indices array pointing to the  instances in the node.<DD><CODE>insts</CODE> - The actual instances. The instList points to instances in this object.<DT><B>Returns:</B><DD>The calculated centre/pivot of the node.</DL></DD></DL><HR><A NAME="calcCentroidPivot(int, int, int[], weka.core.Instances)"><!-- --></A><H3>calcCentroidPivot</H3><PRE>public static <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>calcCentroidPivot</B>(int&nbsp;start,                                         int&nbsp;end,                                         int[]&nbsp;instList,                                         <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;insts)</PRE><DL><DD>Calculates the centroid pivot of a node. The node is given in the form of the portion of an indices array that  contains the indices of the points inside the node.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start index marking the start of  the portion belonging to the node.<DD><CODE>end</CODE> - The end index marking the end of the portion in the indices array that belongs to the node.<DD><CODE>instList</CODE> - The indices array pointing to the  instances in the node.<DD><CODE>insts</CODE> - The actual instances. The instList points to instances in this object.<DT><B>Returns:</B><DD>The calculated centre/pivot of the node.</DL></DD></DL><HR><A NAME="calcRadius(int[], weka.core.Instances, weka.core.Instance, weka.core.DistanceFunction)"><!-- --></A><H3>calcRadius</H3><PRE>public static double <B>calcRadius</B>(int[]&nbsp;instList,                                <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;insts,                                <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;pivot,                                <A HREF="../../../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A>&nbsp;distanceFunction)                         throws java.lang.Exception</PRE><DL><DD>Calculates the radius of node.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instList</CODE> - The indices array containing the indices of the  instances inside the node.<DD><CODE>insts</CODE> - The actual instances object. instList points to  instances in this object.<DD><CODE>pivot</CODE> - The centre/pivot of the node.<DD><CODE>distanceFunction</CODE> - The distance fuction to use to calculate  the radius.<DT><B>Returns:</B><DD>The radius of the node.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - If there is some problem in calculating the  radius.</DL></DD></DL><HR><A NAME="calcRadius(int, int, int[], weka.core.Instances, weka.core.Instance, weka.core.DistanceFunction)"><!-- --></A><H3>calcRadius</H3><PRE>public static double <B>calcRadius</B>(int&nbsp;start,                                int&nbsp;end,                                int[]&nbsp;instList,                                <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;insts,                                <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;pivot,                                <A HREF="../../../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A>&nbsp;distanceFunction)                         throws java.lang.Exception</PRE><DL><DD>Calculates the radius of a node.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>start</CODE> - The start index of the portion in indices array  that belongs to the node.<DD><CODE>end</CODE> - The end index of the portion in indices array  that belongs to the node.<DD><CODE>instList</CODE> - The indices array holding indices of  instances.<DD><CODE>insts</CODE> - The actual instances. instList points to  instances in this object.<DD><CODE>pivot</CODE> - The centre/pivot of the node.<DD><CODE>distanceFunction</CODE> - The distance function to use to  calculate the radius.<DT><B>Returns:</B><DD>The radius of the node.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - If there is some problem calculating the  radius.</DL></DD></DL><HR><A NAME="calcPivot(weka.core.neighboursearch.balltrees.BallNode, weka.core.neighboursearch.balltrees.BallNode, weka.core.Instances)"><!-- --></A><H3>calcPivot</H3><PRE>public static <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A> <B>calcPivot</B>(<A HREF="../../../../weka/core/neighboursearch/balltrees/BallNode.html" title="class in weka.core.neighboursearch.balltrees">BallNode</A>&nbsp;child1,                                 <A HREF="../../../../weka/core/neighboursearch/balltrees/BallNode.html" title="class in weka.core.neighboursearch.balltrees">BallNode</A>&nbsp;child2,                                 <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;insts)                          throws java.lang.Exception</PRE><DL><DD>Calculates the centroid pivot of a node based on its two child nodes (if merging two nodes).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>child1</CODE> - The first child of the node.<DD><CODE>child2</CODE> - The second child of the node.<DD><CODE>insts</CODE> - The set of instances on which  the tree is (or is to be) built.<DT><B>Returns:</B><DD>The centre/pivot of the node.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - If there is some problem calculating the pivot.</DL></DD></DL><HR><A NAME="calcRadius(weka.core.neighboursearch.balltrees.BallNode, weka.core.neighboursearch.balltrees.BallNode, weka.core.Instance, weka.core.DistanceFunction)"><!-- --></A><H3>calcRadius</H3><PRE>public static double <B>calcRadius</B>(<A HREF="../../../../weka/core/neighboursearch/balltrees/BallNode.html" title="class in weka.core.neighboursearch.balltrees">BallNode</A>&nbsp;child1,                                <A HREF="../../../../weka/core/neighboursearch/balltrees/BallNode.html" title="class in weka.core.neighboursearch.balltrees">BallNode</A>&nbsp;child2,                                <A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;pivot,                                <A HREF="../../../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A>&nbsp;distanceFunction)                         throws java.lang.Exception</PRE><DL><DD>Calculates the radius of a node based on its two  child nodes (if merging two nodes).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>child1</CODE> - The first child of the node.<DD><CODE>child2</CODE> - The second child of the node.<DD><CODE>pivot</CODE> - The centre/pivot of the node.<DD><CODE>distanceFunction</CODE> - The distance function to  use to calculate the radius<DT><B>Returns:</B><DD>The radius of the node.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - If there is some problem  in calculating the radius.</DL></DD></DL><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</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=2 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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../weka/core/neighboursearch/balltrees/BallSplitter.html" title="class in weka.core.neighboursearch.balltrees"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?weka/core/neighboursearch/balltrees/BallNode.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="BallNode.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 + =
减小字号Ctrl + -
显示快捷键?