This class models the Bernoulli distribution with a specified success probability. The class inherits methods from the parent BinomialDistribution and Distribution classes for computing the probability density function, mean, variance, moments, distribution function, quantile function, generating function, and simulated value. Some of these methods are overridden to implement closed formulas or better algorithms. This object is used in many experiments with indicator random variables; see, for example, Buffon's needle experiment.
The text area below gives the code for this object, so that you can browse the constructors, methods, and properties of the object. Of course, this source file is part of distributions.zip, which contains the source and resource files for all objects in the distributions class.