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

📄 debug.random.html

📁 weka是机器学习和数据挖掘领域最有影响力的开源项目之一
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="Debug.Random(long, boolean)"><!-- --></A><H3>Debug.Random</H3><PRE>public <B>Debug.Random</B>(long&nbsp;seed,                    boolean&nbsp;debug)</PRE><DL><DD>Creates a new random number generator using a single long seed. With optional debugging<P><DL><DT><B>Parameters:</B><DD><CODE>seed</CODE> - the seed value<DD><CODE>debug</CODE> - if true, debugging output is enabled</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="setDebug(boolean)"><!-- --></A><H3>setDebug</H3><PRE>public void <B>setDebug</B>(boolean&nbsp;value)</PRE><DL><DD>sets whether to print the generated random values or not<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - if true debugging output is enabled</DL></DD></DL><HR><A NAME="getDebug()"><!-- --></A><H3>getDebug</H3><PRE>public boolean <B>getDebug</B>()</PRE><DL><DD>returns whether to print the generated random values or not<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if debugging output is enabled</DL></DD></DL><HR><A NAME="setLog(weka.core.Debug.Log)"><!-- --></A><H3>setLog</H3><PRE>public void <B>setLog</B>(<A HREF="../../weka/core/Debug.Log.html" title="class in weka.core">Debug.Log</A>&nbsp;value)</PRE><DL><DD>the log to use, if it is null then stdout is used<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>value</CODE> - the log to use</DL></DD></DL><HR><A NAME="getLog()"><!-- --></A><H3>getLog</H3><PRE>public <A HREF="../../weka/core/Debug.Log.html" title="class in weka.core">Debug.Log</A> <B>getLog</B>()</PRE><DL><DD>the currently used log, if null then stdout is used for outputting the debugging information<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the log, can be null</DL></DD></DL><HR><A NAME="getID()"><!-- --></A><H3>getID</H3><PRE>public long <B>getID</B>()</PRE><DL><DD>returns the unique ID of this number generator<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the unique ID of this number generator</DL></DD></DL><HR><A NAME="printStackTrace()"><!-- --></A><H3>printStackTrace</H3><PRE>public void <B>printStackTrace</B>()</PRE><DL><DD>prints the current stacktrace<P><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="nextBoolean()"><!-- --></A><H3>nextBoolean</H3><PRE>public boolean <B>nextBoolean</B>()</PRE><DL><DD>Returns the next pseudorandom, uniformly distributed boolean value from this random number generator's sequence.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextBoolean</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>random boolean</DL></DD></DL><HR><A NAME="nextBytes(byte[])"><!-- --></A><H3>nextBytes</H3><PRE>public void <B>nextBytes</B>(byte[]&nbsp;bytes)</PRE><DL><DD>Generates random bytes and places them into a user-supplied byte array.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextBytes</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>bytes</CODE> - array to fill with random bytes</DL></DD></DL><HR><A NAME="nextDouble()"><!-- --></A><H3>nextDouble</H3><PRE>public double <B>nextDouble</B>()</PRE><DL><DD>Returns the next pseudorandom, uniformly distributed double value between 0.0 and 1.0 from this random number generator's sequence.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextDouble</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>random double</DL></DD></DL><HR><A NAME="nextFloat()"><!-- --></A><H3>nextFloat</H3><PRE>public float <B>nextFloat</B>()</PRE><DL><DD>Returns the next pseudorandom, uniformly distributed float  value between 0.0 and 1.0 from this random number generator's sequence.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextFloat</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>random float</DL></DD></DL><HR><A NAME="nextGaussian()"><!-- --></A><H3>nextGaussian</H3><PRE>public double <B>nextGaussian</B>()</PRE><DL><DD>Returns the next pseudorandom, Gaussian ("normally") distributed double value with mean 0.0 and standard deviation 1.0 from this random number generator's sequence.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextGaussian</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>random double, gaussian distributed</DL></DD></DL><HR><A NAME="nextInt()"><!-- --></A><H3>nextInt</H3><PRE>public int <B>nextInt</B>()</PRE><DL><DD>Returns the next pseudorandom, uniformly distributed int  value from this random number generator's sequence.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextInt</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>random int</DL></DD></DL><HR><A NAME="nextInt(int)"><!-- --></A><H3>nextInt</H3><PRE>public int <B>nextInt</B>(int&nbsp;n)</PRE><DL><DD>Returns a pseudorandom, uniformly distributed int value between 0 (inclusive) and the specified value (exclusive), drawn from this random number generator's sequence.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextInt</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the upper limit (exclusive)<DT><B>Returns:</B><DD>random int</DL></DD></DL><HR><A NAME="nextLong()"><!-- --></A><H3>nextLong</H3><PRE>public long <B>nextLong</B>()</PRE><DL><DD>Returns the next pseudorandom, uniformly distributed long  value from this random number generator's sequence.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>nextLong</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>random long</DL></DD></DL><HR><A NAME="setSeed(long)"><!-- --></A><H3>setSeed</H3><PRE>public void <B>setSeed</B>(long&nbsp;seed)</PRE><DL><DD>Sets the seed of this random number generator using a single long seed.<P><DD><DL><DT><B>Overrides:</B><DD><CODE>setSeed</CODE> in class <CODE>java.util.Random</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>seed</CODE> - the seed value</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>returns a string representation of this number generator<P><DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a string representation</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/Debug.Log.html" title="class in weka.core"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../weka/core/Debug.SimpleLog.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.Random.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Debug.Random.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></BODY></HTML>

⌨️ 快捷键说明

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