Bernoulli Distribution Constructor
Constructs a new BernoulliDistribution with the specified
probability of success.
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public BernoulliDistribution(
double probability
)
Parameters
- probability Double
- The probability of a trial resulting in success.
Remarks
This constructor creates a BernoulliDistribution with the specified probability. If probability is less than 0 or greater than 1, an exception of type ArgumentOutOfRangeException is thrown.
Exceptions
ArgumentOutOfRangeException | probability is less than zero or greater than 1. |