📄 splitgenerator.html
字号:
<BR> The restartAll method resets the state of all the virtual generators to the start of their current segment.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../swarm/random/SplitGenerator.html#restartGenerator(int)">restartGenerator</A></B>(int vGen)</CODE><BR> The restartGenerator method resets the state of a virtual generator to the start of the current segment.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getNumGenerators()"><!-- --></A><H3>getNumGenerators</H3><PRE>public int <B>getNumGenerators</B>()</PRE><DL><DD>The getNumGenerators method returns the current number of virtual generators (A).</DL><HR><A NAME="getNumSegments()"><!-- --></A><H3>getNumSegments</H3><PRE>public int <B>getNumSegments</B>()</PRE><DL><DD>The getNumSegments method returns log2(the current number of segments) = v.</DL><HR><A NAME="getSegmentLength()"><!-- --></A><H3>getSegmentLength</H3><PRE>public int <B>getSegmentLength</B>()</PRE><DL><DD>The getSegmentLength method returns log2(the current segment length) = w.</DL><HR><A NAME="restartGenerator(int)"><!-- --></A><H3>restartGenerator</H3><PRE>public java.lang.Object <B>restartGenerator</B>(int vGen)</PRE><DL><DD>The restartGenerator method resets the state of a virtual generator to the start of the current segment.</DL><HR><A NAME="advanceGenerator(int)"><!-- --></A><H3>advanceGenerator</H3><PRE>public java.lang.Object <B>advanceGenerator</B>(int vGen)</PRE><DL><DD>The advanceGenerator method resets the state of a virtual generator to the start of the next segment.</DL><HR><A NAME="jumpGenerator$toSegment(int, long)"><!-- --></A><H3>jumpGenerator$toSegment</H3><PRE>public java.lang.Object <B>jumpGenerator$toSegment</B>(int vGen, long seg)</PRE><DL><DD>The jumpGenerator:toSegment: method resets the state of a virtual generator to the start of the specified segment.</DL><HR><A NAME="restartAll()"><!-- --></A><H3>restartAll</H3><PRE>public java.lang.Object <B>restartAll</B>()</PRE><DL><DD>The restartAll method resets the state of all the virtual generators to the start of their current segment.</DL><HR><A NAME="advanceAll()"><!-- --></A><H3>advanceAll</H3><PRE>public java.lang.Object <B>advanceAll</B>()</PRE><DL><DD>The advanceAll method resets the state of all the virtual generators to the start of their next segment.</DL><HR><A NAME="jumpAllToSegment(long)"><!-- --></A><H3>jumpAllToSegment</H3><PRE>public java.lang.Object <B>jumpAllToSegment</B>(long seg)</PRE><DL><DD>The jumpAlltoSegment: method resets the state of all the virtual generators to the start of the specified segment.</DL><HR><A NAME="getUnsignedSample(int)"><!-- --></A><H3>getUnsignedSample</H3><PRE>public int <B>getUnsignedSample</B>(int vGen)</PRE><DL><DD>The getUnsignedSample method returns a random unsigned integer uniformly distributed over the interval [0,unsignedMax] from virtual generator (data stream) vGen.</DL><HR><A NAME="getFloatSample(int)"><!-- --></A><H3>getFloatSample</H3><PRE>public float <B>getFloatSample</B>(int vGen)</PRE><DL><DD>The getFloatSample method returns a random floating-point number of size float, uniformly distributed in the range [0.0,1.0), from virtual generator (data stream) vGen. This method uses 1 call to -getUnsignedSample to fill the mantissa.</DL><HR><A NAME="getThinDoubleSample(int)"><!-- --></A><H3>getThinDoubleSample</H3><PRE>public double <B>getThinDoubleSample</B>(int vGen)</PRE><DL><DD>The getThinDoubleSample method returns a random floating-point number of size double, uniformly distributed in the range [0.0,1.0), from virtual generator (data stream) vGen. This method uses 1 call to -getUnsignedSample to fill the mantissa.</DL><HR><A NAME="getDoubleSample(int)"><!-- --></A><H3>getDoubleSample</H3><PRE>public double <B>getDoubleSample</B>(int vGen)</PRE><DL><DD>The getDoubleSample method returns a random floating-point number of size double, uniformly distributed in the range [0.0,1.0), from virtual generator (data stream) vGen. This method uses 2 calls to -getUnsignedSample to fill the mantissa.</DL><HR><A NAME="getCurrentSegment(int)"><!-- --></A><H3>getCurrentSegment</H3><PRE>public long <B>getCurrentSegment</B>(int vGen)</PRE><DL><DD>The getCurrentSegment method returns the number of the current segment of the specified virtual generator.</DL><HR><A NAME="getCurrentCount(int)"><!-- --></A><H3>getCurrentCount</H3><PRE>public long <B>getCurrentCount</B>(int vGen)</PRE><DL><DD>The getCurrentCount method returns the current count of the specified virtual generator (i.e. the number of variates delivered).</DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../swarm/random/SimpleRandomGeneratorS.html"><B>PREV CLASS</B></A> <A HREF="../../swarm/random/SplitGeneratorC.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="SplitGenerator.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -