double negbnlp(int x, int r, double p);
Returns the value of the negative binomial random variable distribution function with r successes each with probability of p at the value of x failures.
Parameters:
x | Critical point. |
---|---|
r | Number of successes. |
p | Probability of success. |
Returns:
P(X ≤ x | r, p)
Errors:
NUM_ERRROR
is raised if p ≤ 0, p ≥ 1, or r ≤ 1
Usage:
double p = negbnlp(15, 10, 0.75)
Header:
#include "discdist.h"