normalizabledistance.html
来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,252 行 · 第 1/4 页
HTML
1,252 行
double cutOffValue, <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. 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, 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>cutOffValue</CODE> - If the distance being calculated becomes larger than cutOffValue then the rest of the calculation is discarded.<DD><CODE>stats</CODE> - the performance stats object<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="initializeRanges()"><!-- --></A><H3>initializeRanges</H3><PRE>public double[][] <B>initializeRanges</B>()</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</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> instance, int numAtt, double[][] 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, int, double[][])"><!-- --></A><H3>updateRanges</H3><PRE>public void <B>updateRanges</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance, int numAtt, double[][] ranges)</PRE><DL><DD>Updates the minimum and maximum and width values for all the attributes based on a new instance.<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="initializeRangesEmpty(int, double[][])"><!-- --></A><H3>initializeRangesEmpty</H3><PRE>public void <B>initializeRangesEmpty</B>(int numAtt, double[][] 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="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> instance, double[][] 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<DT><B>Returns:</B><DD>the updated ranges</DL></DD></DL><HR><A NAME="initializeRanges(int[])"><!-- --></A><H3>initializeRanges</H3><PRE>public double[][] <B>initializeRanges</B>(int[] 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> - if something goes wrong</DL></DD></DL><HR><A NAME="initializeRanges(int[], int, int)"><!-- --></A><H3>initializeRanges</H3><PRE>public double[][] <B>initializeRanges</B>(int[] instList, int startIdx, int 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 <= end, end<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> - if something goes wrong</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> 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="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> instance, double[][] 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="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> - if no randes are set yet</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns an empty 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>an empty string</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../weka/core/MultiInstanceCapabilitiesHandler.html" title="interface in weka.core"><B>PREV CLASS</B></A> <A HREF="../../weka/core/NoSupportForMissingValuesException.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/NormalizableDistance.html" target="_top"><B>FRAMES</B></A> <A HREF="NormalizableDistance.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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 + -
显示快捷键?