nominalmapping.html

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

HTML
537
字号
int <B>getPositiveIndex</B>()</PRE><DL><DD>Returns the index of a positive class (if available). Returns  -1 otherwise.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getPositiveString()"><!-- --></A><H3>getPositiveString</H3><PRE>java.lang.String <B>getPositiveString</B>()</PRE><DL><DD>Returns the nominal value of a positive class (if available). Returns  null otherwise.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNegativeIndex()"><!-- --></A><H3>getNegativeIndex</H3><PRE>int <B>getNegativeIndex</B>()</PRE><DL><DD>Returns the index of a negative class (if available). Returns  -1 otherwise.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getNegativeString()"><!-- --></A><H3>getNegativeString</H3><PRE>java.lang.String <B>getNegativeString</B>()</PRE><DL><DD>Returns the nominal value of a negative class (if available). Returns  null otherwise.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getIndex(java.lang.String)"><!-- --></A><H3>getIndex</H3><PRE>int <B>getIndex</B>(java.lang.String&nbsp;nominalValue)</PRE><DL><DD>Returns the internal double representation (actually an integer index) for the given  nominal value without creating a mapping if none exists.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mapString(java.lang.String)"><!-- --></A><H3>mapString</H3><PRE>int <B>mapString</B>(java.lang.String&nbsp;nominalValue)</PRE><DL><DD>Returns the internal double representation (actually an integer index) for the given  nominal value. This method creates a mapping if it did not exist before.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="mapIndex(int)"><!-- --></A><H3>mapIndex</H3><PRE>java.lang.String <B>mapIndex</B>(int&nbsp;index)</PRE><DL><DD>Returns the nominal value for an internal double representation (actually an integer index).  This method only works for nominal values which were formerly mapped via   <A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#mapString(java.lang.String)"><CODE>mapString(String)</CODE></A>.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setMapping(java.lang.String, int)"><!-- --></A><H3>setMapping</H3><PRE>void <B>setMapping</B>(java.lang.String&nbsp;nominalValue,                int&nbsp;index)</PRE><DL><DD>Sets the given mapping. This might be practical for example for replacing a nominal value  (without a data scan!).<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getValues()"><!-- --></A><H3>getValues</H3><PRE>java.util.List&lt;java.lang.String&gt; <B>getValues</B>()</PRE><DL><DD>Returns a list of all nominal values which were mapped via <A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#mapString(java.lang.String)"><CODE>mapString(String)</CODE></A>  until now.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="size()"><!-- --></A><H3>size</H3><PRE>int <B>size</B>()</PRE><DL><DD>Returns the number of different nominal values which were mapped via  <A HREF="../../../../com/rapidminer/example/table/NominalMapping.html#mapString(java.lang.String)"><CODE>mapString(String)</CODE></A> until now.<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="sortMappings()"><!-- --></A><H3>sortMappings</H3><PRE>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/AbstractExampleTable.html" title="class in com.rapidminer.example.table"><CODE>AbstractExampleTable</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 otherwise!<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="clear()"><!-- --></A><H3>clear</H3><PRE>void <B>clear</B>()</PRE><DL><DD>Clears the mapping.<P><DD><DL></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/NominalMapping.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/NominalAttribute.html" title="class in com.rapidminer.example.table"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../com/rapidminer/example/table/NonWritableDataRow.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/NominalMapping.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="NominalMapping.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;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&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 + -
显示快捷键?