📄 euclideandistance.html
字号:
<CODE> 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> instance, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> allPoints, int[] pointList)</CODE><BR> 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> 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> first, <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> second)</CODE><BR> Calculates the distance between two instances.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> 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> first, <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> second, <A HREF="../../weka/core/neighboursearch/PerformanceStats.html" title="class in weka.core.neighboursearch">PerformanceStats</A> stats)</CODE><BR> 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> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#getMiddle(double[])">getMiddle</A></B>(double[] ranges)</CODE><BR> 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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#getRevision()">getRevision</A></B>()</CODE><BR> Returns the revision string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <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> 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> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#globalInfo()">globalInfo</A></B>()</CODE><BR> Returns a string describing this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#postProcessDistances(double[])">postProcessDistances</A></B>(double[] distances)</CODE><BR> 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> double</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/EuclideanDistance.html#sqDifference(int, double, double)">sqDifference</A></B>(int index, double val1, double val2)</CODE><BR> 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> 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> instance, int dim, double value)</CODE><BR> Returns true if the value of the given dimension is smaller or equal the value to be compared with.</TD></TR></TABLE> <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> <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> <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> 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> first, <A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> 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 + -