## Usage
```javascript
var bernoulli = require( '@stdlib/stats/base/dists/bernoulli' );
```
#### bernoulli
Bernoulli distribution.
```javascript
var dist = bernoulli;
// returns {...}
```
The namespace contains the following distribution functions:
- [`cdf( x, p )`][@stdlib/stats/base/dists/bernoulli/cdf]: Bernoulli distribution cumulative distribution function.
- [`mgf( t, p )`][@stdlib/stats/base/dists/bernoulli/mgf]: Bernoulli distribution moment-generating function (MGF).
- [`pmf( x, p )`][@stdlib/stats/base/dists/bernoulli/pmf]: Bernoulli distribution probability mass function (PMF).
- [`quantile( r, p )`][@stdlib/stats/base/dists/bernoulli/quantile]: Bernoulli distribution quantile function.
The namespace contains the following functions for calculating distribution properties:
- [`entropy( p )`][@stdlib/stats/base/dists/bernoulli/entropy]: Bernoulli distribution entropy.
- [`kurtosis( p )`][@stdlib/stats/base/dists/bernoulli/kurtosis]: Bernoulli distribution excess kurtosis.
- [`mean( p )`][@stdlib/stats/base/dists/bernoulli/mean]: Bernoulli distribution expected value.
- [`median( p )`][@stdlib/stats/base/dists/bernoulli/median]: Bernoulli distribution median.
- [`mode( p )`][@stdlib/stats/base/dists/bernoulli/mode]: Bernoulli distribution mode.
- [`skewness( p )`][@stdlib/stats/base/dists/bernoulli/skewness]: Bernoulli distribution skewness.
- [`stdev( p )`][@stdlib/stats/base/dists/bernoulli/stdev]: Bernoulli distribution standard deviation.
- [`variance( p )`][@stdlib/stats/base/dists/bernoulli/variance]: Bernoulli distribution variance.
The namespace contains a constructor function for creating a [Bernoulli][bernoulli-distribution] distribution object.
- [`Bernoulli( [p] )`][@stdlib/stats/base/dists/bernoulli/ctor]: Bernoulli distribution constructor.
```javascript
var Bernoulli = require( '@stdlib/stats/base/dists/bernoulli' ).Bernoulli;
var dist = new Bernoulli( 0.2 );
var y = dist.pmf( 0.0 );
// returns 0.8
y = dist.pmf( 1.0 );
// returns 0.2
```