stringlocator.html
来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 408 行 · 第 1/2 页
HTML
408 行
<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><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/core/AttributeLocator.html#getRevision()">getRevision</A></CODE> in class <CODE><A HREF="../../weka/core/AttributeLocator.html" title="class in weka.core">AttributeLocator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</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 + =
减小字号Ctrl + -
显示快捷键?