Sets the probability of a success on any one trial.
Note that the
probability of a success is expressed as a decimal (i.e. 1
percent = 0.01
) and hence is chosen from the closed interval
[0,1]
.
Remark: Note that the probability of a failure of any of the trials
is 1-(probSuccess)
, where probSuccess
is the probability
of a success.
Exception Type | Condition |
---|---|
BinomialProbabilityDistributionException | Thrown if the given probability given lies outside the interval [0.1] . |
BinomialProbabilityDistribution Class | WebCab.COM.Statistics.PDistributions Namespace