Returns the inverse of the discrete geometric cumulative probability distribution function.

Namespace: Imsl.Stat
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.0.0

Syntax

C#
public static double Geometric(
	double r,
	double pin
)
Visual Basic (Declaration)
Public Shared Function Geometric ( _
	r As Double, _
	pin As Double _
) As Double
Visual C++
public:
static double Geometric(
	double r, 
	double pin
)

Parameters

r
Type: System..::.Double
A double scalar value representing the probability for which the inverse geometric function is to be evaluated.
pin
Type: System..::.Double
An int scalar value representing the probability parameter for each independent trial (the probability of success for each independent trial).

Return Value

A double scalar value. The probability that a geometric random variable takes a value less than or equal to this returned value is the input probability, r.

See Also