Discrete Uniform 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
DoubleThe probability of obtaining a sample with value n.
Remarks
The probability function of a distribution shows the probabilities associated with the possible outcomes of a trial.
Probability(Int32, Int32)
Gets the probability of obtaining a sample that falls
within the specified interval from the distribution.
public override double Probability(
int lowerBound,
int upperBound
)
Parameters
- lowerBound Int32
- The lower bound of the interval.
- upperBound Int32
- The upper bound of the interval.
Return Value
DoubleThe total probability of obtaining a value greater than or equal to lowerBound.and less than upperBound.