Discrete Uniform Distribution.Probability Method
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
Overload List
Probability( | Returns the probability of obtaining a specific integer value in the distribution. |
Probability( | Gets the probability of obtaining a sample that falls within the specified interval from the distribution. |
Probability(Int32)
Returns the probability of obtaining a specific integer
value in the distribution.
public override double Probability(
int n
)
Parameters
- n Int32
- An integer value.
Return Value
DoubleThe probability of obtaining the specified value.
Remarks
This method represents the probability function of the distribution.
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 inclusive lower bound of the interval.
- upperBound Int32
- The exclusive upper bound of the interval.
Return Value
DoubleThe total probability of obtaining a value greater than or equal to lowerBound and less than upperBound.