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

📄 euclideandistance.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD><DL></DL></DD></DL><HR><A NAME="getMiddle(double[])"><!-- --></A><H3>getMiddle</H3><PRE>public double <B>getMiddle</B>(double[]&nbsp;ranges)</PRE><DL><DD>Returns value in the middle of the two parameter values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ranges</CODE> - the ranges to this dimension<DT><B>Returns:</B><DD>the middle value</DL></DD></DL><HR><A NAME="closestPoint(weka.core.Instance, weka.core.Instances, int[])"><!-- --></A><H3>closestPoint</H3><PRE>public int <B>closestPoint</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance,                        <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;allPoints,                        int[]&nbsp;pointList)                 throws java.lang.Exception</PRE><DL><DD>Returns the index of the closest point to the current instance. Index is index in Instances object that is the second parameter.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance to assign a cluster to<DD><CODE>allPoints</CODE> - all points<DD><CODE>pointList</CODE> - the list of points<DT><B>Returns:</B><DD>the index of the closest point<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="valueIsSmallerEqual(weka.core.Instance, int, double)"><!-- --></A><H3>valueIsSmallerEqual</H3><PRE>public boolean <B>valueIsSmallerEqual</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance,                                   int&nbsp;dim,                                   double&nbsp;value)</PRE><DL><DD>Returns true if the value of the given dimension is smaller or equal the  value to be compared with.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance where the value should be taken of<DD><CODE>dim</CODE> - the dimension of the value<DD><CODE>value</CODE> - the value to compare with<DT><B>Returns:</B><DD>true is value of instance is smaller or equal value</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Documents the content of an EuclideanDistance object in a string.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the converted string</DL></DD></DL><HR><A NAME="initializeRanges()"><!-- --></A><H3>initializeRanges</H3><PRE>public double[][] <B>initializeRanges</B>()                            throws java.lang.Exception</PRE><DL><DD>Initializes the ranges using all instances of the dataset. Sets m_Ranges.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ranges<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="initializeRanges(int[])"><!-- --></A><H3>initializeRanges</H3><PRE>public double[][] <B>initializeRanges</B>(int[]&nbsp;instList)                            throws java.lang.Exception</PRE><DL><DD>Initializes the ranges of a subset of the instances of this dataset. Therefore m_Ranges is not set.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instList</CODE> - list of indexes of the subset<DT><B>Returns:</B><DD>the ranges<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="initializeRanges(int[], int, int)"><!-- --></A><H3>initializeRanges</H3><PRE>public double[][] <B>initializeRanges</B>(int[]&nbsp;instList,                                   int&nbsp;startIdx,                                   int&nbsp;endIdx)                            throws java.lang.Exception</PRE><DL><DD>Initializes the ranges of a subset of the instances of this dataset. Therefore m_Ranges is not set. The caller of this method should ensure that the supplied start and end  indices are valid (start &lt;= end, end&lt;instList.length etc) and correct.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instList</CODE> - list of indexes of the instances<DD><CODE>startIdx</CODE> - start index of the subset of instances in the indices array<DD><CODE>endIdx</CODE> - end index of the subset of instances in the indices array<DT><B>Returns:</B><DD>the ranges<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="initializeRangesEmpty(int, double[][])"><!-- --></A><H3>initializeRangesEmpty</H3><PRE>public void <B>initializeRangesEmpty</B>(int&nbsp;numAtt,                                  double[][]&nbsp;ranges)</PRE><DL><DD>Used to initialize the ranges.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>numAtt</CODE> - number of attributes in the model<DD><CODE>ranges</CODE> - low, high and width values for all attributes</DL></DD></DL><HR><A NAME="updateRangesFirst(weka.core.Instance, int, double[][])"><!-- --></A><H3>updateRangesFirst</H3><PRE>public void <B>updateRangesFirst</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance,                              int&nbsp;numAtt,                              double[][]&nbsp;ranges)</PRE><DL><DD>Used to initialize the ranges. For this the values of the first instance is used to save time. Sets low and high to the values of the first instance and width to zero.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the new instance<DD><CODE>numAtt</CODE> - number of attributes in the model<DD><CODE>ranges</CODE> - low, high and width values for all attributes</DL></DD></DL><HR><A NAME="updateRanges(weka.core.Instance, double[][])"><!-- --></A><H3>updateRanges</H3><PRE>public double[][] <B>updateRanges</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance,                               double[][]&nbsp;ranges)</PRE><DL><DD>Updates the ranges given a new instance.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the new instance<DD><CODE>ranges</CODE> - low, high and width values for all attributes</DL></DD></DL><HR><A NAME="updateRanges(weka.core.Instance)"><!-- --></A><H3>updateRanges</H3><PRE>public void <B>updateRanges</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)</PRE><DL><DD>Update the ranges if a new instance comes.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the new instance</DL></DD></DL><HR><A NAME="printRanges(double[][])"><!-- --></A><H3>printRanges</H3><PRE>public void <B>printRanges</B>(double[][]&nbsp;ranges)</PRE><DL><DD>prints the ranges.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ranges</CODE> - low, high and width values for all attributes</DL></DD></DL><HR><A NAME="inRanges(weka.core.Instance, double[][])"><!-- --></A><H3>inRanges</H3><PRE>public boolean <B>inRanges</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance,                        double[][]&nbsp;ranges)</PRE><DL><DD>Test if an instance is within the given ranges.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance<DD><CODE>ranges</CODE> - the ranges the instance is tested to be in<DT><B>Returns:</B><DD>true if instance is within the ranges</DL></DD></DL><HR><A NAME="printRanges(weka.core.Instances, double[][])"><!-- --></A><H3>printRanges</H3><PRE>public void <B>printRanges</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;model,                        double[][]&nbsp;ranges)</PRE><DL><DD>Prints a range to standard output<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ranges</CODE> - the ranges to print</DL></DD></DL><HR><A NAME="rangesSet()"><!-- --></A><H3>rangesSet</H3><PRE>public boolean <B>rangesSet</B>()</PRE><DL><DD>Check if ranges are set.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if ranges are set</DL></DD></DL><HR><A NAME="getRanges()"><!-- --></A><H3>getRanges</H3><PRE>public double[][] <B>getRanges</B>()                     throws java.lang.Exception</PRE><DL><DD>Method to get the ranges.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the ranges<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[]&nbsp;args)</PRE><DL><DD>Main method for testing this class.<P><DD><DL></DL></DD><DD><DL></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;<A HREF="../../weka/core/Drawable.html" title="interface in weka.core"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/core/FastVector.html" title="class in weka.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?weka/core/EuclideanDistance.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="EuclideanDistance.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 + -