negbnlp

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:
xCritical point.
rNumber of successes.
pProbability 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"