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

📄 debug.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DD>prints the given message with the specified level<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>level</CODE> - the level of logging<DD><CODE>sourceclass</CODE> - the class that logs the message<DD><CODE>sourcemethod</CODE> - the method that logs the message<DD><CODE>message</CODE> - the message to print</DL></DD></DL><HR><A NAME="setEnabled(boolean)"><!-- --></A><H3>setEnabled</H3><PRE>public void <B>setEnabled</B>(boolean&nbsp;value)</PRE><DL><DD>sets whether the logging is enabled or not<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - if true logging will be enabled</DL></DD></DL><HR><A NAME="getEnabled()"><!-- --></A><H3>getEnabled</H3><PRE>public boolean <B>getEnabled</B>()</PRE><DL><DD>returns whether the logging is enabled<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the logging is enabled</DL></DD></DL><HR><A NAME="newClock()"><!-- --></A><H3>newClock</H3><PRE>public static <A HREF="../../weka/core/Debug.Clock.html" title="class in weka.core">Debug.Clock</A> <B>newClock</B>()</PRE><DL><DD>returns a new instance of a clock<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a new instance of a Clock</DL></DD></DL><HR><A NAME="getClock()"><!-- --></A><H3>getClock</H3><PRE>public <A HREF="../../weka/core/Debug.Clock.html" title="class in weka.core">Debug.Clock</A> <B>getClock</B>()</PRE><DL><DD>returns the instance of the Clock that is internally used<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the clock that's being used</DL></DD></DL><HR><A NAME="startClock()"><!-- --></A><H3>startClock</H3><PRE>public void <B>startClock</B>()</PRE><DL><DD>starts the clock<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="stopClock(java.lang.String)"><!-- --></A><H3>stopClock</H3><PRE>public void <B>stopClock</B>(java.lang.String&nbsp;message)</PRE><DL><DD>stops the clock and prints the message associated with the time, but only if the logging is enabled.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>message</CODE> - the message to print<DT><B>See Also:</B><DD><A HREF="../../weka/core/Debug.html#getEnabled()"><CODE>getEnabled()</CODE></A></DL></DD></DL><HR><A NAME="newRandom()"><!-- --></A><H3>newRandom</H3><PRE>public static java.util.Random <B>newRandom</B>()</PRE><DL><DD>returns a default debug random object, with no particular seed and  debugging enabled.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a new instance of a Random object</DL></DD></DL><HR><A NAME="newRandom(int)"><!-- --></A><H3>newRandom</H3><PRE>public static java.util.Random <B>newRandom</B>(int&nbsp;seed)</PRE><DL><DD>returns a debug random object with the specified seed and debugging  enabled.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>seed</CODE> - the seed value<DT><B>Returns:</B><DD>a new instance of a Random object</DL></DD></DL><HR><A NAME="newTimestamp()"><!-- --></A><H3>newTimestamp</H3><PRE>public static <A HREF="../../weka/core/Debug.Timestamp.html" title="class in weka.core">Debug.Timestamp</A> <B>newTimestamp</B>()</PRE><DL><DD>returns a default timestamp for the current date/time<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a new timestamp</DL></DD></DL><HR><A NAME="getTempDir()"><!-- --></A><H3>getTempDir</H3><PRE>public static java.lang.String <B>getTempDir</B>()</PRE><DL><DD>returns the system temp directory<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the temp directory</DL></DD></DL><HR><A NAME="getHomeDir()"><!-- --></A><H3>getHomeDir</H3><PRE>public static java.lang.String <B>getHomeDir</B>()</PRE><DL><DD>returns the home directory of the user<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the user's home directory</DL></DD></DL><HR><A NAME="getCurrentDir()"><!-- --></A><H3>getCurrentDir</H3><PRE>public static java.lang.String <B>getCurrentDir</B>()</PRE><DL><DD>returns the current working directory of the user<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the user's current working directory</DL></DD></DL><HR><A NAME="writeToFile(java.lang.String, java.lang.Object)"><!-- --></A><H3>writeToFile</H3><PRE>public static boolean <B>writeToFile</B>(java.lang.String&nbsp;filename,                                  java.lang.Object&nbsp;obj)</PRE><DL><DD>Writes the given object to the specified file. The string representation of the object is appended to the file.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file to write to<DD><CODE>obj</CODE> - the object to write to the file<DT><B>Returns:</B><DD>true if writing was successful</DL></DD></DL><HR><A NAME="writeToFile(java.lang.String, java.lang.String)"><!-- --></A><H3>writeToFile</H3><PRE>public static boolean <B>writeToFile</B>(java.lang.String&nbsp;filename,                                  java.lang.String&nbsp;message)</PRE><DL><DD>Writes the given message to the specified file. The message is appended  to the file.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file to write to<DD><CODE>message</CODE> - the message to write<DT><B>Returns:</B><DD>true if writing was successful</DL></DD></DL><HR><A NAME="writeToFile(java.lang.String, java.lang.Object, boolean)"><!-- --></A><H3>writeToFile</H3><PRE>public static boolean <B>writeToFile</B>(java.lang.String&nbsp;filename,                                  java.lang.Object&nbsp;obj,                                  boolean&nbsp;append)</PRE><DL><DD>Writes the given object to the specified file. The string representation  of the object is either appended or replaces the current content of the  file.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file to write to<DD><CODE>obj</CODE> - the object to write to the file<DD><CODE>append</CODE> - whether to append the message or not<DT><B>Returns:</B><DD>true if writing was successful</DL></DD></DL><HR><A NAME="writeToFile(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>writeToFile</H3><PRE>public static boolean <B>writeToFile</B>(java.lang.String&nbsp;filename,                                  java.lang.String&nbsp;message,                                  boolean&nbsp;append)</PRE><DL><DD>Writes the given message to the specified file. The message is either  appended or replaces the current content of the file.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file to write to<DD><CODE>message</CODE> - the message to write<DD><CODE>append</CODE> - whether to append the message or not<DT><B>Returns:</B><DD>true if writing was successful</DL></DD></DL><HR><A NAME="saveToFile(java.lang.String, java.lang.Object)"><!-- --></A><H3>saveToFile</H3><PRE>public static boolean <B>saveToFile</B>(java.lang.String&nbsp;filename,                                 java.lang.Object&nbsp;o)</PRE><DL><DD>writes the serialized object to the speicified file<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the file to serialize the object to<DD><CODE>o</CODE> - the object to serialize<DT><B>Returns:</B><DD>true if writing was successful</DL></DD></DL><HR><A NAME="loadFromFile(java.lang.String)"><!-- --></A><H3>loadFromFile</H3><PRE>public static java.lang.Object <B>loadFromFile</B>(java.lang.String&nbsp;filename)</PRE><DL><DD>deserializes the content of the file and returns it, null if an error occurred.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the name of the file to deserialize<DT><B>Returns:</B><DD>the deserialized content, null if problem occurred</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="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> <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>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../weka/core/Copyable.html" title="interface in weka.core"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/core/Debug.Clock.html" title="class in weka.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html?weka/core/Debug.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Debug.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;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&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;<A HREF="#field_detail">FIELD</A>&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></BODY></HTML>

⌨️ 快捷键说明

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