📄 stringlocator.html
字号:
<TD><CODE><A HREF="../../weka/core/AttributeLocator.html#compareTo(weka.core.AttributeLocator)">compareTo</A>, <A HREF="../../weka/core/AttributeLocator.html#equals(java.lang.Object)">equals</A>, <A HREF="../../weka/core/AttributeLocator.html#getActualIndex(int)">getActualIndex</A>, <A HREF="../../weka/core/AttributeLocator.html#getAllowedIndices()">getAllowedIndices</A>, <A HREF="../../weka/core/AttributeLocator.html#getAttributeIndices()">getAttributeIndices</A>, <A HREF="../../weka/core/AttributeLocator.html#getData()">getData</A>, <A HREF="../../weka/core/AttributeLocator.html#getLocator(int)">getLocator</A>, <A HREF="../../weka/core/AttributeLocator.html#getLocatorIndices()">getLocatorIndices</A>, <A HREF="../../weka/core/AttributeLocator.html#getType()">getType</A>, <A HREF="../../weka/core/AttributeLocator.html#toString()">toString</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>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="StringLocator(weka.core.Instances)"><!-- --></A><H3>StringLocator</H3><PRE>public <B>StringLocator</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data)</PRE><DL><DD>initializes the StringLocator with the given data<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to work on</DL></DL><HR><A NAME="StringLocator(weka.core.Instances, int, int)"><!-- --></A><H3>StringLocator</H3><PRE>public <B>StringLocator</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, int fromIndex, int toIndex)</PRE><DL><DD>Initializes the StringLocator with the given data. Checks only the given range.<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to work on<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="StringLocator(weka.core.Instances, int[])"><!-- --></A><H3>StringLocator</H3><PRE>public <B>StringLocator</B>(<A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> data, int[] indices)</PRE><DL><DD>Initializes the AttributeLocator with the given data. Checks only the specified attribute indices.<P><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the data to work on<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="copyStringValues(weka.core.Instance, weka.core.Instances, weka.core.AttributeLocator)"><!-- --></A><H3>copyStringValues</H3><PRE>public static void <B>copyStringValues</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> inst, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> destDataset, <A HREF="../../weka/core/AttributeLocator.html" title="class in weka.core">AttributeLocator</A> strAtts)</PRE><DL><DD>Copies string values contained in the instance copied to a new dataset. The Instance must already be assigned to a dataset. This dataset and the destination dataset must have the same structure.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>inst</CODE> - the Instance containing the string values to copy.<DD><CODE>destDataset</CODE> - the destination set of Instances<DD><CODE>strAtts</CODE> - an AttributeLocator containing the indices of any string attributes in the dataset.</DL></DD></DL><HR><A NAME="copyStringValues(weka.core.Instance, boolean, weka.core.Instances, weka.core.AttributeLocator, weka.core.Instances, weka.core.AttributeLocator)"><!-- --></A><H3>copyStringValues</H3><PRE>public static void <B>copyStringValues</B>(<A HREF="../../weka/core/Instance.html" title="class in weka.core">Instance</A> instance, boolean instSrcCompat, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> srcDataset, <A HREF="../../weka/core/AttributeLocator.html" title="class in weka.core">AttributeLocator</A> srcLoc, <A HREF="../../weka/core/Instances.html" title="class in weka.core">Instances</A> destDataset, <A HREF="../../weka/core/AttributeLocator.html" title="class in weka.core">AttributeLocator</A> destLoc)</PRE><DL><DD>Takes string values referenced by an Instance and copies them from a source dataset to a destination dataset. The instance references are updated to be valid for the destination dataset. The instance may have the structure (i.e. number and attribute position) of either dataset (this affects where references are obtained from). Only works if the number of string attributes is the same in both indices (implicitly these string attributes should be semantically same but just with shifted positions).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - the instance containing references to strings in the source dataset that will have references updated to be valid for the destination dataset.<DD><CODE>instSrcCompat</CODE> - true if the instance structure is the same as the source, or false if it is the same as the destination (i.e. which of the string attribute indices contains the correct locations for this instance).<DD><CODE>srcDataset</CODE> - the dataset for which the current instance string references are valid (after any position mapping if needed)<DD><CODE>srcLoc</CODE> - an AttributeLocator containing the indices of string attributes in the source datset.<DD><CODE>destDataset</CODE> - the dataset for which the current instance string references need to be inserted (after any position mapping if needed)<DD><CODE>destLoc</CODE> - an AttributeLocator containing the indices of string attributes in the destination datset.</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/Stopwords.html" title="class in weka.core"><B>PREV CLASS</B></A> <A HREF="../../weka/core/Summarizable.html" title="interface in weka.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/core/StringLocator.html" target="_top"><B>FRAMES</B></A> <A HREF="StringLocator.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 + -