Evaluates the discrete geometric probability density function.

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

Syntax

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

Parameters

x
Type: System..::.Int32
The int argument for which the geometric probability function is to be evaluated.
pin
Type: System..::.Double
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 Pdf.Geometric evaluates the geometric distribution for the number of trials before the first success.

See Also