⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tools.html

📁 数据挖掘方面最新软件
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the correct line separator for the current operating system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#getLineSeparators(int)">getLineSeparators</A></B>(int&nbsp;number)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the correct line separator for the current operating system concatenated   for the given number of times.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#getNextToken(java.io.StreamTokenizer)">getNextToken</A></B>(java.io.StreamTokenizer&nbsp;tokenizer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Delivers the next token and checks for an unexpected end of line or file.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.io.BufferedReader</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#getReader(java.io.File, java.nio.charset.Charset)">getReader</A></B>(java.io.File&nbsp;file,          java.nio.charset.Charset&nbsp;encoding)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method checks if the given file is a Zip file containing one entry (in case of file extension .zip).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#getRelativePath(java.io.File, java.io.File)">getRelativePath</A></B>(java.io.File&nbsp;firstFile,                java.io.File&nbsp;secondFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the relative path of the first file resolved against the second.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#getResource(java.lang.ClassLoader, java.lang.String)">getResource</A></B>(java.lang.ClassLoader&nbsp;loader,            java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#getResource(java.lang.ClassLoader, java.lang.String, java.lang.String)">getResource</A></B>(java.lang.ClassLoader&nbsp;loader,            java.lang.String&nbsp;prefix,            java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.net.URL</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#getResource(java.lang.String)">getResource</A></B>(java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the desired resource.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#isEqual(double, double)">isEqual</A></B>(double&nbsp;d1,        double&nbsp;d2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the difference between both numbers is smaller than IS_ZERO.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#isGreater(double, double)">isGreater</A></B>(double&nbsp;d1,          double&nbsp;d2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the d1 is greater than d2 and they are not equal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#isGreaterEqual(double, double)">isGreaterEqual</A></B>(double&nbsp;d1,               double&nbsp;d2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the d1 is greater than d1 or both are equal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#isLess(double, double)">isLess</A></B>(double&nbsp;d1,       double&nbsp;d2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the d1 is less than d2 and they are not equal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#isLessEqual(double, double)">isLessEqual</A></B>(double&nbsp;d1,            double&nbsp;d2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if the d1 is less than d1 or both are equal.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#isNotEqual(double, double)">isNotEqual</A></B>(double&nbsp;d1,           double&nbsp;d2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns no <A HREF="../../../com/rapidminer/tools/Tools.html#isEqual(double, double)"><CODE>isEqual(double, double)</CODE></A>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#isZero(double)">isZero</A></B>(double&nbsp;d)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns <A HREF="../../../com/rapidminer/tools/Tools.html#isEqual(double, double)"><CODE>isEqual(double, double)</CODE></A> for d and 0.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.Process</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#launchFileEditor(java.io.File, int)">launchFileEditor</A></B>(java.io.File&nbsp;file,                 int&nbsp;line)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#mergeQuotedSplits(java.lang.String, java.lang.String[], java.lang.String)">mergeQuotedSplits</A></B>(java.lang.String&nbsp;line,                  java.lang.String[]&nbsp;splittedTokens,                  java.lang.String&nbsp;quoteString)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This method merges quoted splits, e.g. if a string line should be splitted by comma and commas inside of a quoted string should not be used as splitting point.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#mkdir(java.io.File)">mkdir</A></B>(java.io.File&nbsp;dir)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a directory including parent directories.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#ordinalNumber(int)">ordinalNumber</A></B>(int&nbsp;n)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the name for an ordinal number.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#prependResourceSource(com.rapidminer.tools.ResourceSource)">prependResourceSource</A></B>(<A HREF="../../../com/rapidminer/tools/ResourceSource.html" title="class in com.rapidminer.tools">ResourceSource</A>&nbsp;source)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adds a new resource source before the others.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#readOutput(java.io.BufferedReader)">readOutput</A></B>(java.io.BufferedReader&nbsp;in)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Reads the output of the reader and delivers it as string.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#readTextFile(java.io.File)">readTextFile</A></B>(java.io.File&nbsp;file)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#readTextFile(java.io.Reader)">readTextFile</A></B>(java.io.Reader&nbsp;r)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#removeAllLineSeparators(java.lang.String)">removeAllLineSeparators</A></B>(java.lang.String&nbsp;text)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes all possible line feed character combinations.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#sendEmail(java.lang.String, java.lang.String, java.lang.String)">sendEmail</A></B>(java.lang.String&nbsp;address,          java.lang.String&nbsp;subject,          java.lang.String&nbsp;content)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sends a mail to the given address, using the specified subject and contents.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#transformAllLineSeparators(java.lang.String)">transformAllLineSeparators</A></B>(java.lang.String&nbsp;text)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Replaces all possible line feed character combinations by &quot;\n&quot;.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#waitForEOL(java.io.StreamTokenizer)">waitForEOL</A></B>(java.io.StreamTokenizer&nbsp;tokenizer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Skips all tokens before next end of line (EOL).</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/tools/Tools.html#waitForProcess(com.rapidminer.operator.Operator, java.lang.Process, java.lang.String)">waitForProcess</A></B>(<A HREF="../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A>&nbsp;operator,               java.lang.Process&nbsp;process,               java.lang.String&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Waits for process to die and writes log messages.</TD></TR></TABLE>&nbsp;<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>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_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>Field Detail</B></FONT></TH></TR></TABLE><A NAME="RESOURCE_PREFIX"><!-- --></A><H3>RESOURCE_PREFIX</H3><PRE>public static final java.lang.String <B>RESOURCE_PREFIX</B></PRE><DL><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.tools.Tools.RESOURCE_PREFIX">Constant Field Values</A></DL></DL><HR><A NAME="TRUE_STRINGS"><!-- --></A><H3>TRUE_STRINGS</H3><PRE>public static final java.lang.String[] <B>TRUE_STRINGS</B></PRE><DL><DL></DL></DL><HR><A NAME="FALSE_STRINGS"><!-- --></A><H3>FALSE_STRINGS</H3><PRE>public static final java.lang.String[] <B>FALSE_STRINGS</B></PRE><DL><DL></DL></DL><!-- ========= 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="Tools()"><!-- --></A><H3>Tools</H3><PRE>public <B>Tools</B>()</PRE><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="formatPercent(double)"><!-- --></A><H3>formatPercent</H3><PRE>public static java.lang.String <B>formatPercent</B>(double&nbsp;value)</PRE><DL><DD>Returns a formatted string of the given number (percent format with two fraction digits).<P><DD><DL></DL></DD></DL><HR><A NAME="formatNumber(double)"><!-- --></A><H3>formatNumber</H3><PRE>public static java.lang.String <B>formatNumber</B>(double&nbsp;value)</PRE><DL><DD>Returns a formatted string of the given number (number format with usually three fraction digits).<P><DD><DL></DL></DD></DL><HR><A NAME="formatNumber(double, int)"><!-- --></A><H3>formatNumber</H3><PRE>public static java.lang.String <B>formatNumber</B>(double&nbsp;value,                                            int&nbsp;numberOfDigits)</PRE><DL><DD>Returns a formatted string of the given number (uses the property rapidminer.gui.fractiondigits.numbers if the given number of digits is  smaller than 0 (usually 3)).<P><DD><DL></DL></DD></DL><HR><A NAME="formatIntegerIfPossible(double)"><!-- --></A><H3>formatIntegerIfPossible</H3><PRE>public static java.lang.String <B>formatIntegerIfPossible</B>(double&nbsp;value)</PRE><DL><DD>Returns a number string with no fraction digits if possible. Otherwise the default   number of digits will be returned.

⌨️ 快捷键说明

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