Bernoulli Distribution.Probability Method
Definition
Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Probability( | Evaluates the probability function of the distribution. |
Probability( | Gets the probability of obtaining a sample that falls within the specified interval from the distribution. |
Probability(Int32)
Evaluates the probability function of the distribution.
public override double Probability(
int n
)
Parameters
- n Int32
- An integer.
Return Value
DoubleA double-precision floating-point value as follows:
n | Return value |
---|---|
0 | The probability of failure. |
1 | The probability of success. |
Remarks
The probability function of a distribution shows the probabilities associated with the possible outcomes of a trial.
For a Bernoulli distribution, the probability is non-zero only for n equal to 0 or 1.