
cdfbin_s
Calculates the number of successes of a cumulative distribution function.
Prototype
function cdfbin_s ( p : numeric, xn : numeric, pr : numeric ) return_val : numeric
Arguments
pA multi-dimensional array or scalar value equal to the binomial density. The binomial density is the probability of s or fewer successes in xn trials each with probability of success pr (input/output range: [0,1]).
xnA multi-dimensional array or scalar value equal to the number of binomial trials (Must be > 0). Must be the same size as s.
prA multi-dimensional array or scalar value equal to the the probability of success in each binomial trial [0,1] Must be the same size as s.
Return value
A array of the same size as p. Double if any of the input arguments are double, float otherwise.
Description
Calculates the number of successes of a cumulative distribution function.
The source code is from source routine "CDFBIN" from DCDFLIB (Double precision Cumulative Distribution Function LIBrary)
See Also
Examples
Example 1
p = 0.95 xn = 30.0 pr = 0.75 s = cdfbin_s(p,xn,pr) print("s="+s) ; s = 25.7267