Bernoulli Distribution Constructor
Constructs a new BernoulliDistribution with the specified
probability of success.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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
Argument | probability is less than zero or greater than 1. |