📄 attributelocator.html
字号:
<A NAME="AttributeLocator(weka.core.Instances, int, int, int)"><!-- --></A><H3>AttributeLocator</H3><PRE>public <B>AttributeLocator</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, int type, int fromIndex, int toIndex)</PRE><DL><DD>Initializes the AttributeLocator with the given data for the specified type of attribute. Checks only the given range.<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to work on<DD><CODE>type</CODE> - the type of attribute to locate<DD><CODE>fromIndex</CODE> - the first index to inspect (including)<DD><CODE>toIndex</CODE> - the last index to check (including)</DL></DL><HR><A NAME="AttributeLocator(weka.core.Instances, int, int[])"><!-- --></A><H3>AttributeLocator</H3><PRE>public <B>AttributeLocator</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, int type, int[] indices)</PRE><DL><DD>initializes the AttributeLocator with the given data for the specified type of attribute. Checks only the given attribute indices.<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to work on<DD><CODE>type</CODE> - the type of attribute to locate<DD><CODE>indices</CODE> - the attribute indices to check</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="getType()"><!-- --></A><H3>getType</H3><PRE>public int <B>getType</B>()</PRE><DL><DD>returns the type of attribute that is located<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the type of attribute</DL></DD></DL><HR><A NAME="getAllowedIndices()"><!-- --></A><H3>getAllowedIndices</H3><PRE>public int[] <B>getAllowedIndices</B>()</PRE><DL><DD>returns the indices that are allowed to check for the attribute type<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the indices that are checked for the attribute type</DL></DD></DL><HR><A NAME="getData()"><!-- --></A><H3>getData</H3><PRE>public <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> <B>getData</B>()</PRE><DL><DD>returns the underlying data<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the underlying Instances object</DL></DD></DL><HR><A NAME="getActualIndex(int)"><!-- --></A><H3>getActualIndex</H3><PRE>public int <B>getActualIndex</B>(int index)</PRE><DL><DD>returns actual index in the Instances object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index in the m_AllowedIndices array<DT><B>Returns:</B><DD>the actual index in the instances object</DL></DD></DL><HR><A NAME="getAttributeIndices()"><!-- --></A><H3>getAttributeIndices</H3><PRE>public int[] <B>getAttributeIndices</B>()</PRE><DL><DD>Returns the indices of the attributes. These indices are referring to the m_AllowedIndices array, not the actual indices in the Instances object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the indices of the attributes<DT><B>See Also:</B><DD><A HREF="../../weka/core/AttributeLocator.html#getActualIndex(int)"><CODE>getActualIndex(int)</CODE></A></DL></DD></DL><HR><A NAME="getLocatorIndices()"><!-- --></A><H3>getLocatorIndices</H3><PRE>public int[] <B>getLocatorIndices</B>()</PRE><DL><DD>Returns the indices of the AttributeLocator objects. These indices are referring to the m_AllowedIndices array, not the actual indices in the Instances object.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the indices of the AttributeLocator objects<DT><B>See Also:</B><DD><A HREF="../../weka/core/AttributeLocator.html#getActualIndex(int)"><CODE>getActualIndex(int)</CODE></A></DL></DD></DL><HR><A NAME="getLocator(int)"><!-- --></A><H3>getLocator</H3><PRE>public <A HREF="../../weka/core/AttributeLocator.html" title="class in weka.core">AttributeLocator</A> <B>getLocator</B>(int index)</PRE><DL><DD>Returns the AttributeLocator at the given index. This index refers to the index of the m_AllowedIndices array, not the actual Instances object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the locator to retrieve<DT><B>Returns:</B><DD>the AttributeLocator at the given index</DL></DD></DL><HR><A NAME="compareTo(weka.core.AttributeLocator)"><!-- --></A><H3>compareTo</H3><PRE>public int <B>compareTo</B>(<A HREF="../../weka/core/AttributeLocator.html" title="class in weka.core">AttributeLocator</A> o)</PRE><DL><DD>Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. Only type and indices are checked.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>compareTo</CODE> in interface <CODE>java.lang.Comparable<<A HREF="../../weka/core/AttributeLocator.html" title="class in weka.core">AttributeLocator</A>></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object to compare with<DT><B>Returns:</B><DD>-1 if less than, 0 if equal, +1 if greater than the given object</DL></DD></DL><HR><A NAME="equals(java.lang.Object)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(java.lang.Object o)</PRE><DL><DD>Indicates whether some other object is "equal to" this one. Only type and indices are checked.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the AttributeLocator to check for equality<DT><B>Returns:</B><DD>true if the AttributeLocators have the same type and indices</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>returns a string representation of this object<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>a string representation</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/AttributeExpression.html" title="class in weka.core"><B>PREV CLASS</B></A> <A HREF="../../weka/core/AttributeStats.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/AttributeLocator.html" target="_top"><B>FRAMES</B></A> <A HREF="AttributeLocator.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 | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -