|
||
---|---|---|
.. | ||
cdf | ||
ctor | ||
docs/types | ||
entropy | ||
kurtosis | ||
lib | ||
logcdf | ||
logpdf | ||
mean | ||
median | ||
mgf | ||
mode | ||
quantile | ||
skewness | ||
stdev | ||
variance | ||
package.json | ||
README.md |
Laplace
Laplace distribution.
Usage
var laplace = require( '@stdlib/stats/base/dists/laplace' );
laplace
Laplace distribution.
var dist = laplace;
// returns {...}
The namespace contains the following distribution functions:
cdf( x, mu, b )
: Laplace distribution cumulative distribution function.logcdf( x, mu, b )
: Laplace distribution logarithm of cumulative distribution function.logpdf( x, mu, b )
: Laplace distribution logarithm of probability density function (PDF).mgf( t, mu, b )
: Laplace distribution moment-generating function (MGF).pdf( x, mu, b )
: Laplace distribution probability density function (PDF).quantile( p, mu, b )
: Laplace distribution quantile function.
The namespace contains the following functions for calculating distribution properties:
entropy( mu, b )
: Laplace distribution differential entropy.kurtosis( mu, b )
: Laplace distribution excess kurtosis.mean( mu, b )
: Laplace distribution expected value.median( mu, b )
: Laplace distribution median.mode( mu, b )
: Laplace distribution mode.skewness( mu, b )
: Laplace distribution skewness.stdev( mu, b )
: Laplace distribution standard deviation.variance( mu, b )
: Laplace distribution variance.
The namespace contains a constructor function for creating a Laplace distribution object.
Laplace( [mu, b] )
: Laplace distribution constructor.
var Laplace = require( '@stdlib/stats/base/dists/laplace' ).Laplace;
var dist = new Laplace( 2.0, 4.0 );
var y = dist.cdf( 0.5 );
// returns ~0.344
Examples
var objectKeys = require( '@stdlib/utils/keys' );
var laplace = require( '@stdlib/stats/base/dists/laplace' );
console.log( objectKeys( laplace ) );