This function evaluates the discrete geometric probability density function.
GEOPR — Function value, the probability that a random variable from a geometric distribution having parameter PIN will be equal to IX. (Output)
IX — Argument for which the discrete geometric probability density function is to be evaluated. IX must be greater than or equal to 0. (Input)
PIN — Probability parameter of the geometric probability function (the probability of success for each independent trial). PIN must be in the open interval (0, 1). (Input)
Specific: The specific interface names are S_GEOPR and D_GEOPR.
Double: The double precision name is DGEOPR.
The function GEOPR evaluates the discrete geometric probability density function, defined
In this example, we evaluate the probability density function at IX = 3, PIN = 0.25.
USE
UMACH_INT
USE
GEOPR_INT
IMPLICIT NONE
WRITE (NOUT, 99999) IX, PIN, PR
99999 FORMAT (' GEOPR(', I2, ', ', F4.2, ') = ', F6.4)
|
Visual Numerics, Inc. PHONE: 713.784.3131 FAX:713.781.9260 |