polynominalmapping.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 604 行 · 第 1/2 页

HTML
604
字号
<PRE>public java.lang.Object <B>clone</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#clone()">NominalMapping</A></CODE></B></DD><DD>Should return a deep clone of this nominal mapping.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#clone()">clone</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE><DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mapString(java.lang.String)"><!-- --></A><H3>mapString</H3><PRE>public int <B>mapString</B>(java.lang.String&nbsp;str)</PRE><DL><DD>Returns the index for the nominal attribute value <code>str</code>. If the string is unknown, a new index value is assigned. Returns -1, if str is null.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#mapString(java.lang.String)">mapString</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getIndex(java.lang.String)"><!-- --></A><H3>getIndex</H3><PRE>public int <B>getIndex</B>(java.lang.String&nbsp;str)</PRE><DL><DD>Returns the index of the given nominal value or -1 if this value was not mapped before by invoking the method <A HREF="../../../../com/rapidminer/example/table/PolynominalMapping.html#mapIndex(int)"><CODE>mapIndex(int)</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getIndex(java.lang.String)">getIndex</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mapIndex(int)"><!-- --></A><H3>mapIndex</H3><PRE>public java.lang.String <B>mapIndex</B>(int&nbsp;index)</PRE><DL><DD>Returns the attribute value, that is associated with this index. Index counting starts with 0. <b>WARNING:</b> In order to iterate over all values please use the collection returned by <A HREF="../../../../com/rapidminer/example/table/PolynominalMapping.html#getValues()"><CODE>getValues()</CODE></A>.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#mapIndex(int)">mapIndex</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setMapping(java.lang.String, int)"><!-- --></A><H3>setMapping</H3><PRE>public void <B>setMapping</B>(java.lang.String&nbsp;nominalValue,                       int&nbsp;index)</PRE><DL><DD>Sets the given mapping. Please note that this will overwrite existing mappings and might  cause data changes in this way.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#setMapping(java.lang.String, int)">setMapping</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNegativeIndex()"><!-- --></A><H3>getNegativeIndex</H3><PRE>public int <B>getNegativeIndex</B>()</PRE><DL><DD>Returns the index of the first value if this attribute is a classification attribute, i.e. if it is binominal.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getNegativeIndex()">getNegativeIndex</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPositiveIndex()"><!-- --></A><H3>getPositiveIndex</H3><PRE>public int <B>getPositiveIndex</B>()</PRE><DL><DD>Returns the index of the second value if this attribute is a classification attribute. Works for all binominal attributes.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getPositiveIndex()">getPositiveIndex</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNegativeString()"><!-- --></A><H3>getNegativeString</H3><PRE>public java.lang.String <B>getNegativeString</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getNegativeString()">NominalMapping</A></CODE></B></DD><DD>Returns the nominal value of a negative class (if available). Returns  null otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getNegativeString()">getNegativeString</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPositiveString()"><!-- --></A><H3>getPositiveString</H3><PRE>public java.lang.String <B>getPositiveString</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getPositiveString()">NominalMapping</A></CODE></B></DD><DD>Returns the nominal value of a positive class (if available). Returns  null otherwise.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getPositiveString()">getPositiveString</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getValues()"><!-- --></A><H3>getValues</H3><PRE>public java.util.List&lt;java.lang.String&gt; <B>getValues</B>()</PRE><DL><DD>Returns the values of the attribute as an enumeration of strings.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#getValues()">getValues</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>public int <B>size</B>()</PRE><DL><DD>Returns the number of different nominal values.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#size()">size</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sortMappings()"><!-- --></A><H3>sortMappings</H3><PRE>public void <B>sortMappings</B>()</PRE><DL><DD>This method rearranges the string to number mappings such that they are in alphabetical order. <br> <b>VERY IMPORTANT NOTE:</b> Do not call this method when this attribute is already associated with an <A HREF="../../../../com/rapidminer/example/table/ExampleTable.html" title="interface in com.rapidminer.example.table"><CODE>ExampleTable</CODE></A> and it already contains <A HREF="../../../../com/rapidminer/example/Example.html" title="class in com.rapidminer.example"><CODE>Example</CODE></A>s. All examples will be messed up since the  indices will not be replaced in the data table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#sortMappings()">sortMappings</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>public void <B>clear</B>()</PRE><DL><DD>Clears all mappings for nominal values.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#clear()">clear</A></CODE> in interface <CODE><A HREF="../../../../com/rapidminer/example/table/NominalMapping.html" title="interface in com.rapidminer.example.table">NominalMapping</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL></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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/PolynominalMapping.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href="http://sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=114160&amp;type=2" width="125" height="37" border="0" alt="SourceForge.net Logo" /></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../com/rapidminer/example/table/PolynominalAttribute.html" title="class in com.rapidminer.example.table"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../com/rapidminer/example/table/RandomDataRowReader.html" title="class in com.rapidminer.example.table"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?com/rapidminer/example/table/PolynominalMapping.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="PolynominalMapping.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<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:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR><i>Copyright &#169; 2001-2008 by <a href="http://rapid-i.com" target="_blank">Rapid-I</a></i></BODY></HTML>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?