📄 binomialdistimpl.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Tue Nov 30 14:11:22 MST 2004 --><TITLE>Swarm 2.2 Reference Guide: Class BinomialDistImpl</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_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/BinomialDistCImpl.html"><B>PREV CLASS</B></A> <A HREF="../../swarm/random/C2TAUS1genCImpl.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="BinomialDistImpl.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">swarm.random</FONT><BR>Class BinomialDistImpl</H2><PRE>java.lang.Object | +--<A HREF="../../swarm/BaseImpl.html">swarm.BaseImpl</A> | +--<B>swarm.random.BinomialDistImpl</B></PRE><HR><DL><DT>public class <B>BinomialDistImpl</B><DT>extends <A HREF="../../swarm/BaseImpl.html">BaseImpl</A><DT>implements <A HREF="../../swarm/random/UnsignedDistribution.html">UnsignedDistribution</A>, <A HREF="../../swarm/random/UnsignedDistributionS.html">UnsignedDistributionS</A>, <A HREF="../../swarm/random/BinomialDistS.html">BinomialDistS</A>, <A HREF="../../swarm/random/BinomialDist.html">BinomialDist</A></DL><P><strong> Binomial distribution</strong>.The binomial distribution gives the discrete probability of obtaining exactly n successes out of N Bernoulli trials<P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../swarm/random/BinomialDistImpl.html#BinomialDistImpl()">BinomialDistImpl</A></B>()</CODE><BR> </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../swarm/random/BinomialDistImpl.html#BinomialDistImpl(swarm.defobj.Zone)">BinomialDistImpl</A></B>(<A HREF="../../swarm/defobj/Zone.html">Zone</A> aZone)</CODE><BR> The createWithDefaults method creates a distribution object with a default set of seeds and parameters, and its own private generator.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../swarm/random/BinomialDistImpl.html#BinomialDistImpl(swarm.defobj.Zone, swarm.random.SimpleRandomGenerator)">BinomialDistImpl</A></B>(<A HREF="../../swarm/defobj/Zone.html">Zone</A> aZone, <A HREF="../../swarm/random/SimpleRandomGenerator.html">SimpleRandomGenerator</A> simpleGenerator)</CODE><BR> Use this create message if the generator to be attached is a Simple one:</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../swarm/random/BinomialDistImpl.html#BinomialDistImpl(swarm.defobj.Zone, swarm.random.SimpleRandomGenerator, int, double)">BinomialDistImpl</A></B>(<A HREF="../../swarm/defobj/Zone.html">Zone</A> aZone, <A HREF="../../swarm/random/SimpleRandomGenerator.html">SimpleRandomGenerator</A> generator, int aNumTrials, double aProbability)</CODE><BR> Use this create message if the generator to be attached is a Simple one: and both the number of trials and the probability are to be set at create time:</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../swarm/random/BinomialDistImpl.html#BinomialDistImpl(swarm.defobj.Zone, swarm.random.SplitRandomGenerator, int)">BinomialDistImpl</A></B>(<A HREF="../../swarm/defobj/Zone.html">Zone</A> aZone, <A HREF="../../swarm/random/SplitRandomGenerator.html">SplitRandomGenerator</A> splitGenerator, int vGen)</CODE><BR> Use this create message if the generator to be attached is a Split one:</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../swarm/random/BinomialDistImpl.html#BinomialDistImpl(swarm.defobj.Zone, swarm.random.SplitRandomGenerator, int, int, double)">BinomialDistImpl</A></B>(<A HREF="../../swarm/defobj/Zone.html">Zone</A> aZone, <A HREF="../../swarm/random/SplitRandomGenerator.html">SplitRandomGenerator</A> generator, int vGen, int aNumTrials, double aProbability)</CODE><BR> Use this create message if the generator to be attached is a Split one and both the number of trials and the probability are to be set at create time:</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="methods_implemented_from_interfaces_swarm.random.UnsignedDistribution"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods implemented by this class for interface swarm.random.<A HREF="../../swarm/random/UnsignedDistribution.html">UnsignedDistribution</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/random/UnsignedDistribution.html#getUnsignedSample()">getUnsignedSample</A></CODE></TD></TR></TABLE> <A NAME="methods_implemented_from_interfaces_swarm.random.BinomialDistS"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods implemented by this class for interface swarm.random.<A HREF="../../swarm/random/BinomialDistS.html">BinomialDistS</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/random/BinomialDistS.html#setNumTrials(int)">setNumTrials</A>, <A HREF="../../swarm/random/BinomialDistS.html#setNumTrials$setProbability(int, double)">setNumTrials$setProbability</A></CODE></TD></TR></TABLE> <A NAME="methods_implemented_from_interfaces_swarm.random.BinomialDist"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods implemented by this class for interface swarm.random.<A HREF="../../swarm/random/BinomialDist.html">BinomialDist</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/random/BinomialDist.html#getNumTrials()">getNumTrials</A>, <A HREF="../../swarm/random/BinomialDist.html#getProbability()">getProbability</A>, <A HREF="../../swarm/random/BinomialDist.html#getUnsignedSample()">getUnsignedSample</A>, <A HREF="../../swarm/random/BinomialDist.html#getUnsignedSampleWithNumTrials$withProbability(int, double)">getUnsignedSampleWithNumTrials$withProbability</A>, <A HREF="../../swarm/random/BinomialDist.html#getUnsignedSampleWithProbability(double)">getUnsignedSampleWithProbability</A></CODE></TD></TR></TABLE> <A NAME="methods_implemented_from_interfaces_swarm.random.ProbabilityDistribution"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods implemented by this class for interface swarm.random.<A HREF="../../swarm/random/ProbabilityDistribution.html">ProbabilityDistribution</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/random/ProbabilityDistribution.html#getCurrentCount()">getCurrentCount</A>, <A HREF="../../swarm/random/ProbabilityDistribution.html#getGenerator()">getGenerator</A>, <A HREF="../../swarm/random/ProbabilityDistribution.html#getOptionsInitialized()">getOptionsInitialized</A>, <A HREF="../../swarm/random/ProbabilityDistribution.html#getVirtualGenerator()">getVirtualGenerator</A></CODE></TD></TR></TABLE> <A NAME="methods_implemented_from_interfaces_swarm.random.ProbabilityDistributionS"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods implemented by this class for interface swarm.random.<A HREF="../../swarm/random/ProbabilityDistributionS.html">ProbabilityDistributionS</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../swarm/random/ProbabilityDistributionS.html#reset()">reset</A>, <A HREF="../../swarm/random/ProbabilityDistributionS.html#setGenerator(swarm.random.SimpleRandomGenerator)">setGenerator</A>, <A HREF="../../swarm/random/ProbabilityDistributionS.html#setGenerator$setVirtualGenerator(swarm.random.SplitRandomGenerator, int)">setGenerator$setVirtualGenerator</A></CODE></TD></TR></TABLE> <A NAME="methods_implemented_from_interfaces_swarm.objectbase.SwarmObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -