Evaluates the discrete geometric probability density function.
Namespace: Imsl.StatAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static double Geometric(
int x,
double pin
)
Public Shared Function Geometric (
x As Integer,
pin As Double
) As Double
public:
static double Geometric(
int x,
double pin
)
static member Geometric :
x : int *
pin : float -> float
Parameters
- x
- Type: SystemInt32
The int argument for which the geometric
probability function is to be evaluated.
- pin
- Type: SystemDouble
A double scalar value representing the
probability parameter of the geometric distribution
(the probability of success for each independent trial.
Return Value
Type:
Double
A
double scalar value representing the
probability that a geometric random variable takes a
value equal to
x.
Remarks Method Pdf.Geometric evaluates the geometric distribution
for the number of trials before the first success.
See Also