|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcern.colt.PersistentObject
cern.jet.random.AbstractDistribution
cern.jet.random.AbstractDiscreteDistribution
cern.jet.random.Binomial
jas.random.BinomialDistribution
public class BinomialDistribution
Well known probability distribution. This class is a wrapper for the Binomial class of the COLT library. See cern.jet.random.Binomial API documentation for more details.
Title: JAS
Description: Java Agent-based Simulation library
Copyright (C) 2002 Michele Sonnessa
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
| Constructor Summary | |
|---|---|
BinomialDistribution(int n,
double p)
Create binomial beta random generator with given parameters and the default generator of JAS engine (Sim.getRnd() generator). |
|
BinomialDistribution(int n,
double p,
cern.jet.random.engine.RandomEngine randomGenerator)
Create a binomial random generator with given parameters and a given generator. |
|
| Method Summary | |
|---|---|
static int |
staticNextInt(int n,
double p)
Unsupported operation. |
| Methods inherited from class cern.jet.random.Binomial |
|---|
cdf, nextInt, nextInt, pdf, setNandP, toString |
| Methods inherited from class cern.jet.random.AbstractDiscreteDistribution |
|---|
nextDouble |
| Methods inherited from class cern.jet.random.AbstractDistribution |
|---|
apply, apply, clone, makeDefaultGenerator |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinomialDistribution(int n,
double p)
n - Well known parameter of Binomial distribution.p - Well known parameter of Binomial distribution.
public BinomialDistribution(int n,
double p,
cern.jet.random.engine.RandomEngine randomGenerator)
n - Well known parameter of Binomial distribution.p - Well known parameter of Binomial distribution.randomGenerator - A random number generator. It is taken
from COLT library. See cern.jet.random.engine.RandomEngine for
more details.| Method Detail |
|---|
public static int staticNextInt(int n,
double p)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||