## Usage
```javascript
var negativeBinomial = require( '@stdlib/stats/base/dists/negative-binomial' );
```
#### negativeBinomial
Negative binomial distribution.
```javascript
var dist = negativeBinomial;
// returns {...}
```
The namespace contains the following distribution functions:
- [`cdf( x, r, p )`][@stdlib/stats/base/dists/negative-binomial/cdf]: negative binomial distribution cumulative distribution function.
- [`logpmf( x, r, p )`][@stdlib/stats/base/dists/negative-binomial/logpmf]: evaluate the natural logarithm of the probability mass function (PMF) for a negative binomial distribution.
- [`mgf( t, r, p )`][@stdlib/stats/base/dists/negative-binomial/mgf]: negative binomial distribution moment-generating function (MGF).
- [`pmf( x, r, p )`][@stdlib/stats/base/dists/negative-binomial/pmf]: negative binomial distribution probability mass function (PMF).
- [`quantile( k, r, p )`][@stdlib/stats/base/dists/negative-binomial/quantile]: negative binomial distribution quantile function.
The namespace contains the following functions for calculating distribution properties:
- [`kurtosis( r, p )`][@stdlib/stats/base/dists/negative-binomial/kurtosis]: negative binomial distribution excess kurtosis.
- [`mean( r, p )`][@stdlib/stats/base/dists/negative-binomial/mean]: negative binomial distribution expected value.
- [`mode( r, p )`][@stdlib/stats/base/dists/negative-binomial/mode]: negative binomial distribution mode.
- [`skewness( r, p )`][@stdlib/stats/base/dists/negative-binomial/skewness]: negative binomial distribution skewness.
- [`stdev( r, p )`][@stdlib/stats/base/dists/negative-binomial/stdev]: negative binomial distribution standard deviation.
- [`variance( r, p )`][@stdlib/stats/base/dists/negative-binomial/variance]: negative binomial distribution variance.
The namespace contains a constructor function for creating a [negative binomial][negative-binomial-distribution] distribution object.
- [`NegativeBinomial( [r, p] )`][@stdlib/stats/base/dists/negative-binomial/ctor]: negative binomial distribution constructor.
```javascript
var NegativeBinomial = require( '@stdlib/stats/base/dists/negative-binomial' ).NegativeBinomial;
var dist = new NegativeBinomial( 4.0, 0.2 );
var y = dist.pmf( 4.0 );
// returns ~0.023
```