InvCdfDiscreteUniform Method |
Returns the inverse of the discrete uniform cumulative probability
distribution function.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static int DiscreteUniform(
double p,
int n
)
Public Shared Function DiscreteUniform (
p As Double,
n As Integer
) As Integer
public:
static int DiscreteUniform(
double p,
int n
)
static member DiscreteUniform :
p : float *
n : int -> int
Parameters
- p
- Type: SystemDouble
A double scalar value representing the probability for which
the inverse discrete uniform function is to be evaluated.
- n
- Type: SystemInt32
An int scalar value representing the upper limit of the
discrete uniform distribution.
Return Value
Type:
Int32
An
int scalar value. The probability that a discrete uniform
random variable takes a value less than or equal to this returned
value is
p.
See Also