IMSL C# Numerical Library

Cdf.GeometricProb Method 

Evaluates the discrete geometric probability density function.

public static double GeometricProb(
   int x,
   double pin
);

Parameters

x
An int argument for which the geometric probability function is to be evaluated.
pin
A double scalar value representing the probability parameter of the geometric distribution (the probability of success for each independent trial)

Return Value

A double scalar value representing the probability that a geometric random variable takes a value equal to x.

Remarks

Method GeometricProb evaluates the geometric distribution for the number of trials before the first success.

See Also

Cdf Class | Imsl.Stat Namespace | Example