📄 swarm.random.probabilitydistribution.protocol.html
字号:
<HTML><HEAD><TITLE>ProbabilityDistribution</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.53"><LINKREL="HOME"TITLE="Documentation Set for Swarm 2.1.1"HREF="set.html"><LINKREL="UP"TITLE="Random Library"HREF="swarm.random.sgml.reference.html"><LINKREL="PREVIOUS"TITLE="PSWBgen"HREF="swarm.random.pswbgen.protocol.html"><LINKREL="NEXT"TITLE="RWC2gen"HREF="swarm.random.rwc2gen.protocol.html"></HEAD><BODYCLASS="REFENTRY"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Documentation Set for Swarm 2.1.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="swarm.random.pswbgen.protocol.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Reference V. Random Library</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="swarm.random.rwc2gen.protocol.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.PROTOCOL">ProbabilityDistribution</A></H1><DIVCLASS="REFNAMEDIV"><ANAME="AEN14403"></A><H2>Name</H2>ProbabilityDistribution -- Probability Distribution</DIV><DIVCLASS="REFSECT1"><ANAME="AEN14406"></A><H2>Description</H2><P> A process for generating a sequence of random numbers matching the frequencies defined by a specific distribution function. The process is driven by input from a supplied uniform random generator.</P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN14409"></A><H2>Protocols adopted by ProbabilityDistribution</H2><P> <AHREF="swarm.objectbase.swarmobject.protocol.html">SwarmObject</A> <AHREF="swarm.random.internalstate.protocol.html">InternalState</A></P></DIV><DIVCLASS="REFSECT1"><ANAME="AEN14414"></A><H2>Methods</H2><DIVCLASS="REFSECT2"><ANAME="AEN14416"></A><H3>Phase: Creating</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PC.M54"></A><P></P>+ <BCLASS="FUNCPROTOTYPE">createWithDefaults:</B> (id <Zone>)<VARCLASS="PDPARAM">aZone</VAR> <BR> The createWithDefaults method creates a distribution object with a default set of seeds and parameters, and its own private generator.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PC.M17"></A><P></P>+ <BCLASS="FUNCPROTOTYPE">create:</B> (id <Zone>)<VARCLASS="PDPARAM">aZone</VAR> <BCLASS="FUNCPROTOTYPE">setGenerator:</B> (id <SimpleRandomGenerator>)<VARCLASS="PDPARAM">generator</VAR> <BR> Use this create message if the generator to be attached is a Simple one:<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PC.M26"></A><P></P>+ <BCLASS="FUNCPROTOTYPE">create:</B> (id <Zone>)<VARCLASS="PDPARAM">aZone</VAR> <BCLASS="FUNCPROTOTYPE">setGenerator:</B> (id <SplitRandomGenerator>)<VARCLASS="PDPARAM">generator</VAR> <BCLASS="FUNCPROTOTYPE">setVirtualGenerator:</B> (unsigned)<VARCLASS="PDPARAM">vGen</VAR> <BR> Use this create message if the generator to be attached is a Split one:<P></P></DIV></LI></UL></DIV><DIVCLASS="REFSECT2"><ANAME="AEN14452"></A><H3>Phase: Setting</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PS.M765"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setGenerator:</B> (id <SimpleRandomGenerator>)<VARCLASS="PDPARAM">generator</VAR> <BR> Use this message if the generator to be attached is a Simple one:<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PS.M766"></A><P></P>- <BCLASS="FUNCPROTOTYPE">setGenerator:</B> (id <SplitRandomGenerator>)<VARCLASS="PDPARAM">generator</VAR> <BCLASS="FUNCPROTOTYPE">setVirtualGenerator:</B> (unsigned)<VARCLASS="PDPARAM">vGen</VAR> <BR> Use this message if the generator to be attached is a Split one:<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PS.M645"></A><P></P>- <BCLASS="FUNCPROTOTYPE">reset</B><BR> The reset method resets the currentCount and other state data.<P></P></DIV></LI></UL></DIV><DIVCLASS="REFSECT2"><ANAME="AEN14483"></A><H3>Phase: Using</H3><P></P><UL><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PU.M389"></A><P></P>- (id <BasicRandomGenerator>)<BCLASS="FUNCPROTOTYPE">getGenerator</B><BR> The getGenerator method returns the id of the generator.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PU.M526"></A><P></P>- (unsigned)<BCLASS="FUNCPROTOTYPE">getVirtualGenerator</B><BR> The getVirtualGenerator returns the number of the virtual generator used.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PU.M445"></A><P></P>- (BOOL)<BCLASS="FUNCPROTOTYPE">getOptionsInitialized</B><BR> The getOptionsInitialized returns the value of the parameter.<P></P></DIV></LI><LI><DIVCLASS="FUNCSYNOPSIS"><ANAME="SWARM.RANDOM.PROBABILITYDISTRIBUTION.METHOD.PU.M349"></A><P></P>- (unsigned long long int)<BCLASS="FUNCPROTOTYPE">getCurrentCount</B><BR> The getCurrentCount method returns the count of variates generated.<P></P></DIV></LI></UL></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="swarm.random.pswbgen.protocol.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="set.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="swarm.random.rwc2gen.protocol.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">PSWBgen</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="swarm.random.sgml.reference.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">RWC2gen</TD></TR></TABLE></DIV></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -