IMSL C# Numerical Library

Cdf.Geometric Method 

Evaluates the discrete geometric cumulative probability distribution function.

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

Parameters

x
An int scalar value representing the argument at which the function is to be evaluated
pin
A double scalar value representing the probability parameter for each independent trial (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 less than or equal to x. The return value is the probability that up to x trials would be observed before observing a success.

See Also

Cdf Class | Imsl.Stat Namespace