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

📄 euclideandistance.html

📁 数据挖掘的最常用工具。由于开源
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#closestPoint(weka.core.Instance, weka.core.Instances, int[])">closestPoint</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the index of the closest point to the current instance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#distance(weka.core.Instance, weka.core.Instance)">distance</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;first,         <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;second)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the distance between two instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#distance(weka.core.Instance, weka.core.Instance, weka.core.neighboursearch.PerformanceStats)">distance</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;first,         <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;second,         <A HREF="../../weka/core/neighboursearch/PerformanceStats.html" title="class in weka.core.neighboursearch">PerformanceStats</A>&nbsp;stats)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calculates the distance (or similarity) between two instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#getMiddle(double[])">getMiddle</A></B>(double[]&nbsp;ranges)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns value in the middle of the two parameter values.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#getRevision()">getRevision</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the revision string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../weka/core/TechnicalInformation.html" title="class in weka.core">TechnicalInformation</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#getTechnicalInformation()">getTechnicalInformation</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns an instance of a TechnicalInformation object, containing  detailed information about the technical background of this class, e.g., paper reference or book this class is based on.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#globalInfo()">globalInfo</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a string describing this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#postProcessDistances(double[])">postProcessDistances</A></B>(double[]&nbsp;distances)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does post processing of the distances (if necessary) returned by distance(distance(Instance first, Instance second, double cutOffValue).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#sqDifference(int, double, double)">sqDifference</A></B>(int&nbsp;index,             double&nbsp;val1,             double&nbsp;val2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the squared difference of two values of an attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#valueIsSmallerEqual(weka.core.Instance, int, double)">valueIsSmallerEqual</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance,                    int&nbsp;dim,                    double&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the value of the given dimension is smaller or equal the value to be compared with.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_weka.core.NormalizableDistance"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class weka.core.<A HREF="../../weka/core/NormalizableDistance.html" title="class in weka.core">NormalizableDistance</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/core/NormalizableDistance.html#attributeIndicesTipText()">attributeIndicesTipText</A>, <A HREF="../../weka/core/NormalizableDistance.html#distance(weka.core.Instance, weka.core.Instance, double)">distance</A>, <A HREF="../../weka/core/NormalizableDistance.html#distance(weka.core.Instance, weka.core.Instance, double, weka.core.neighboursearch.PerformanceStats)">distance</A>, <A HREF="../../weka/core/NormalizableDistance.html#dontNormalizeTipText()">dontNormalizeTipText</A>, <A HREF="../../weka/core/NormalizableDistance.html#getAttributeIndices()">getAttributeIndices</A>, <A HREF="../../weka/core/NormalizableDistance.html#getDontNormalize()">getDontNormalize</A>, <A HREF="../../weka/core/NormalizableDistance.html#getInstances()">getInstances</A>, <A HREF="../../weka/core/NormalizableDistance.html#getInvertSelection()">getInvertSelection</A>, <A HREF="../../weka/core/NormalizableDistance.html#getOptions()">getOptions</A>, <A HREF="../../weka/core/NormalizableDistance.html#getRanges()">getRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#initializeRanges()">initializeRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#initializeRanges(int[])">initializeRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#initializeRanges(int[], int, int)">initializeRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#initializeRangesEmpty(int, double[][])">initializeRangesEmpty</A>, <A HREF="../../weka/core/NormalizableDistance.html#inRanges(weka.core.Instance, double[][])">inRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#invertSelectionTipText()">invertSelectionTipText</A>, <A HREF="../../weka/core/NormalizableDistance.html#listOptions()">listOptions</A>, <A HREF="../../weka/core/NormalizableDistance.html#rangesSet()">rangesSet</A>, <A HREF="../../weka/core/NormalizableDistance.html#setAttributeIndices(java.lang.String)">setAttributeIndices</A>, <A HREF="../../weka/core/NormalizableDistance.html#setDontNormalize(boolean)">setDontNormalize</A>, <A HREF="../../weka/core/NormalizableDistance.html#setInstances(weka.core.Instances)">setInstances</A>, <A HREF="../../weka/core/NormalizableDistance.html#setInvertSelection(boolean)">setInvertSelection</A>, <A HREF="../../weka/core/NormalizableDistance.html#setOptions(java.lang.String[])">setOptions</A>, <A HREF="../../weka/core/NormalizableDistance.html#toString()">toString</A>, <A HREF="../../weka/core/NormalizableDistance.html#update(weka.core.Instance)">update</A>, <A HREF="../../weka/core/NormalizableDistance.html#updateRanges(weka.core.Instance)">updateRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#updateRanges(weka.core.Instance, double[][])">updateRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#updateRanges(weka.core.Instance, int, double[][])">updateRanges</A>, <A HREF="../../weka/core/NormalizableDistance.html#updateRangesFirst(weka.core.Instance, int, double[][])">updateRangesFirst</A></CODE></TD></TR></TABLE>&nbsp;<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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="EuclideanDistance()"><!-- --></A><H3>EuclideanDistance</H3><PRE>public <B>EuclideanDistance</B>()</PRE><DL><DD>Constructs an Euclidean Distance object, Instances must be still set.<P></DL><HR><A NAME="EuclideanDistance(weka.core.Instances)"><!-- --></A><H3>EuclideanDistance</H3><PRE>public <B>EuclideanDistance</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data)</PRE><DL><DD>Constructs an Euclidean Distance object and automatically initializes the ranges.<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the instances the distance function should work on</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/NormalizableDistance.html#globalInfo()">globalInfo</A></CODE> in class <CODE><A HREF="../../weka/core/NormalizableDistance.html" title="class in weka.core">NormalizableDistance</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the evaluator suitable for                        displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="getTechnicalInformation()"><!-- --></A><H3>getTechnicalInformation</H3><PRE>public <A HREF="../../weka/core/TechnicalInformation.html" title="class in weka.core">TechnicalInformation</A> <B>getTechnicalInformation</B>()</PRE><DL><DD>Returns an instance of a TechnicalInformation object, containing  detailed information about the technical background of this class, e.g., paper reference or book this class is based on.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/TechnicalInformationHandler.html#getTechnicalInformation()">getTechnicalInformation</A></CODE> in interface <CODE><A HREF="../../weka/core/TechnicalInformationHandler.html" title="interface in weka.core">TechnicalInformationHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the technical information about this class</DL></DD></DL><HR><A NAME="distance(weka.core.Instance, weka.core.Instance)"><!-- --></A><H3>distance</H3><PRE>public double <B>distance</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;first,                       <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;second)</PRE><DL><DD>Calculates the distance between two instances.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#distance(weka.core.Instance, weka.core.Instance)">distance</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/core/NormalizableDistance.html#distance(weka.core.Instance, weka.core.Instance)">distance</A></CODE> in class <CODE><A HREF="../../weka/core/NormalizableDistance.html" title="class in weka.core">NormalizableDistance</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>first</CODE> - the first instance<DD><CODE>second</CODE> - the second instance<DT><B>Returns:</B><DD>the distance between the two given instances</DL></DD></DL>

⌨️ 快捷键说明

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