PdfDiscreteUniform Method |
Evaluates the discrete uniform probability density function.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static double DiscreteUniform(
int x,
int n
)
Public Shared Function DiscreteUniform (
x As Integer,
n As Integer
) As Double
public:
static double DiscreteUniform(
int x,
int n
)
static member DiscreteUniform :
x : int *
n : int -> float
Parameters
- x
- Type: SystemInt32
An int argument for which the discrete
uniform probability density function is to be evaluated.
x should be a value between the lower
limit 0 and upper limit n.
- n
- Type: SystemInt32
An int scalar value representing the
upper limit of the discrete uniform distribution.
Return Value
Type:
DoubleA
double scalar value representing the
probability that a discrete uniform random variable takes a
value equal to
x.
See Also