normalizabledistance.html
来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,252 行 · 第 1/4 页
HTML
1,252 行
</DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html" title="interface in weka.core">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="dontNormalizeTipText()"><!-- --></A><H3>dontNormalizeTipText</H3><PRE>public java.lang.String <B>dontNormalizeTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setDontNormalize(boolean)"><!-- --></A><H3>setDontNormalize</H3><PRE>public void <B>setDontNormalize</B>(boolean dontNormalize)</PRE><DL><DD>Sets whether if the attribute values are to be normalized in distance calculation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dontNormalize</CODE> - if true the values are not normalized</DL></DD></DL><HR><A NAME="getDontNormalize()"><!-- --></A><H3>getDontNormalize</H3><PRE>public boolean <B>getDontNormalize</B>()</PRE><DL><DD>Gets whether if the attribute values are to be normazlied in distance calculation. (default false i.e. attribute values are normalized.)<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>false if values get normalized</DL></DD></DL><HR><A NAME="attributeIndicesTipText()"><!-- --></A><H3>attributeIndicesTipText</H3><PRE>public java.lang.String <B>attributeIndicesTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setAttributeIndices(java.lang.String)"><!-- --></A><H3>setAttributeIndices</H3><PRE>public void <B>setAttributeIndices</B>(java.lang.String value)</PRE><DL><DD>Sets the range of attributes to use in the calculation of the distance. The indices start from 1, 'first' and 'last' are valid as well. E.g.: first-3,5,6-last<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#setAttributeIndices(java.lang.String)">setAttributeIndices</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the new attribute index range</DL></DD></DL><HR><A NAME="getAttributeIndices()"><!-- --></A><H3>getAttributeIndices</H3><PRE>public java.lang.String <B>getAttributeIndices</B>()</PRE><DL><DD>Gets the range of attributes used in the calculation of the distance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#getAttributeIndices()">getAttributeIndices</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the attribute index range</DL></DD></DL><HR><A NAME="invertSelectionTipText()"><!-- --></A><H3>invertSelectionTipText</H3><PRE>public java.lang.String <B>invertSelectionTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setInvertSelection(boolean)"><!-- --></A><H3>setInvertSelection</H3><PRE>public void <B>setInvertSelection</B>(boolean value)</PRE><DL><DD>Sets whether the matching sense of attribute indices is inverted or not.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#setInvertSelection(boolean)">setInvertSelection</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - if true the matching sense is inverted</DL></DD></DL><HR><A NAME="getInvertSelection()"><!-- --></A><H3>getInvertSelection</H3><PRE>public boolean <B>getInvertSelection</B>()</PRE><DL><DD>Gets whether the matching sense of attribute indices is inverted or not.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#getInvertSelection()">getInvertSelection</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the matching sense is inverted</DL></DD></DL><HR><A NAME="setInstances(weka.core.Instances)"><!-- --></A><H3>setInstances</H3><PRE>public void <B>setInstances</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> insts)</PRE><DL><DD>Sets the instances.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#setInstances(weka.core.Instances)">setInstances</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>insts</CODE> - the instances to use</DL></DD></DL><HR><A NAME="getInstances()"><!-- --></A><H3>getInstances</H3><PRE>public <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getInstances</B>()</PRE><DL><DD>returns the instances currently set.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#getInstances()">getInstances</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current instances</DL></DD></DL><HR><A NAME="postProcessDistances(double[])"><!-- --></A><H3>postProcessDistances</H3><PRE>public void <B>postProcessDistances</B>(double[] distances)</PRE><DL><DD>Does nothing, derived classes may override it though.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#postProcessDistances(double[])">postProcessDistances</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>distances</CODE> - the distances to post-process</DL></DD></DL><HR><A NAME="update(weka.core.Instance)"><!-- --></A><H3>update</H3><PRE>public void <B>update</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> ins)</PRE><DL><DD>Update the distance function (if necessary) for the newly added instance.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#update(weka.core.Instance)">update</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ins</CODE> - the instance to add</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></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><HR><A NAME="distance(weka.core.Instance, weka.core.Instance, weka.core.neighboursearch.PerformanceStats)"><!-- --></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, <A HREF="../../weka/core/neighboursearch/PerformanceStats.html" title="class in weka.core.neighboursearch">PerformanceStats</A> stats)</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, weka.core.neighboursearch.PerformanceStats)">distance</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>first</CODE> - the first instance<DD><CODE>second</CODE> - the second instance<DD><CODE>stats</CODE> - the performance stats object<DT><B>Returns:</B><DD>the distance between the two given instances</DL></DD></DL><HR><A NAME="distance(weka.core.Instance, weka.core.Instance, double)"><!-- --></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, double cutOffValue)</PRE><DL><DD>Calculates the distance between two instances. Offers speed up (if the distance function class in use supports it) in nearest neighbour search by taking into account the cutOff or maximum distance. Depending on the distance function class, post processing of the distances by postProcessDistances(double []) may be required if this function is used.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/DistanceFunction.html#distance(weka.core.Instance, weka.core.Instance, double)">distance</A></CODE> in interface <CODE><A HREF="../../weka/core/DistanceFunction.html" title="interface in weka.core">DistanceFunction</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>first</CODE> - the first instance<DD><CODE>second</CODE> - the second instance<DD><CODE>cutOffValue</CODE> - If the distance being calculated becomes larger than cutOffValue then the rest of the calculation is discarded.<DT><B>Returns:</B><DD>the distance between the two given instances or Double.POSITIVE_INFINITY if the distance being calculated becomes larger than cutOffValue.</DL></DD></DL><HR><A NAME="distance(weka.core.Instance, weka.core.Instance, double, weka.core.neighboursearch.PerformanceStats)"><!-- --></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,
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?