public class DistBinomial extends DistDiscrete
(c) copyright 2002-2004 Delft
University of Technology , the Netherlands.
See for project information
www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
| Constructor and Description |
|---|
DistBinomial(StreamInterface stream,
long n,
double p)
constructs a Binomial distribution.
|
| Modifier and Type | Method and Description |
|---|---|
long |
draw()
draws the next long from the stream.
|
double |
probability(int observation)
returns the propbability of the observation in this particular
distribution.
|
String |
toString() |
public DistBinomial(StreamInterface stream, long n, double p)
stream - the numberstreamn - is the n-parameter of the Binomial distributionp - is the p-parameter of the Binomial distributionpublic long draw()
DistDiscretedraw in class DistDiscreteDistDiscrete.draw()public double probability(int observation)
DistDiscreteprobability in class DistDiscreteobservation - the discrete observation.#probability(int)public String toString()
toString in class ObjectObject.toString()Copyright © 2002-2012 Delft University of Technology, the Netherlands. All Rights Reserved.