normalizabledistance.html
来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 1,252 行 · 第 1/4 页
HTML
1,252 行
<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/NormalizableDistance.html#initializeRanges(int[], int, int)">initializeRanges</A></B>(int[] instList, int startIdx, int endIdx)</CODE><BR> Initializes the ranges of a subset of the instances of this dataset.</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/NormalizableDistance.html#initializeRangesEmpty(int, double[][])">initializeRangesEmpty</A></B>(int numAtt, double[][] ranges)</CODE><BR> Used to initialize the ranges.</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/NormalizableDistance.html#inRanges(weka.core.Instance, double[][])">inRanges</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance, double[][] ranges)</CODE><BR> Test if an instance is within the given ranges.</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/NormalizableDistance.html#invertSelectionTipText()">invertSelectionTipText</A></B>()</CODE><BR> Returns the tip text for this property.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Enumeration</CODE></FONT></TD><TD><CODE><B><A HREF="../../weka/core/NormalizableDistance.html#listOptions()">listOptions</A></B>()</CODE><BR> Returns an enumeration describing the available options.</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/NormalizableDistance.html#postProcessDistances(double[])">postProcessDistances</A></B>(double[] distances)</CODE><BR> Does nothing, derived classes may override it though.</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/NormalizableDistance.html#rangesSet()">rangesSet</A></B>()</CODE><BR> Check if ranges are set.</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/NormalizableDistance.html#setAttributeIndices(java.lang.String)">setAttributeIndices</A></B>(java.lang.String value)</CODE><BR> Sets the range of attributes to use in the calculation of the distance.</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/NormalizableDistance.html#setDontNormalize(boolean)">setDontNormalize</A></B>(boolean dontNormalize)</CODE><BR> Sets whether if the attribute values are to be normalized in distance calculation.</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/NormalizableDistance.html#setInstances(weka.core.Instances)">setInstances</A></B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> insts)</CODE><BR> Sets the instances.</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/NormalizableDistance.html#setInvertSelection(boolean)">setInvertSelection</A></B>(boolean value)</CODE><BR> Sets whether the matching sense of attribute indices is inverted or not.</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/NormalizableDistance.html#setOptions(java.lang.String[])">setOptions</A></B>(java.lang.String[] options)</CODE><BR> Parses a given list of options.</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/NormalizableDistance.html#toString()">toString</A></B>()</CODE><BR> Returns an empty string.</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/NormalizableDistance.html#update(weka.core.Instance)">update</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> ins)</CODE><BR> Update the distance function (if necessary) for the newly added instance.</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/NormalizableDistance.html#updateRanges(weka.core.Instance)">updateRanges</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance)</CODE><BR> Update the ranges if a new instance comes.</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/NormalizableDistance.html#updateRanges(weka.core.Instance, double[][])">updateRanges</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance, double[][] ranges)</CODE><BR> Updates the ranges given a new instance.</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/NormalizableDistance.html#updateRanges(weka.core.Instance, int, double[][])">updateRanges</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance, int numAtt, double[][] ranges)</CODE><BR> Updates the minimum and maximum and width values for all the attributes based on a new instance.</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/NormalizableDistance.html#updateRangesFirst(weka.core.Instance, int, double[][])">updateRangesFirst</A></B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance, int numAtt, double[][] ranges)</CODE><BR> Used to initialize the ranges.</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> <A NAME="methods_inherited_from_class_weka.core.RevisionHandler"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface weka.core.<A HREF="../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="R_MIN"><!-- --></A><H3>R_MIN</H3><PRE>public static final int <B>R_MIN</B></PRE><DL><DD>Index in ranges for MIN.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.core.NormalizableDistance.R_MIN">Constant Field Values</A></DL></DL><HR><A NAME="R_MAX"><!-- --></A><H3>R_MAX</H3><PRE>public static final int <B>R_MAX</B></PRE><DL><DD>Index in ranges for MAX.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.core.NormalizableDistance.R_MAX">Constant Field Values</A></DL></DL><HR><A NAME="R_WIDTH"><!-- --></A><H3>R_WIDTH</H3><PRE>public static final int <B>R_WIDTH</B></PRE><DL><DD>Index in ranges for WIDTH.<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.core.NormalizableDistance.R_WIDTH">Constant Field Values</A></DL></DL><!-- ========= 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="NormalizableDistance()"><!-- --></A><H3>NormalizableDistance</H3><PRE>public <B>NormalizableDistance</B>()</PRE><DL><DD>Invalidates the distance function, Instances must be still set.<P></DL><HR><A NAME="NormalizableDistance(weka.core.Instances)"><!-- --></A><H3>NormalizableDistance</H3><PRE>public <B>NormalizableDistance</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data)</PRE><DL><DD>Initializes the distance function 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 abstract java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this object.<P><DD><DL></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="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#listOptions()">listOptions</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>Returns:</B><DD>an enumeration of all the available options.</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings. Returns empty array.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#getOptions()">getOptions</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>Returns:</B><DD>an array of strings suitable for passing to setOptions()</DL></DD>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?