time-to-botec/squiggle/node_modules/@stdlib/stats/base/dists/erlang/README.md
NunoSempere b6addc7f05 feat: add the node modules
Necessary in order to clearly see the squiggle hotwiring.
2022-12-03 12:44:49 +00:00

6.3 KiB

Erlang

Erlang distribution.

Usage

var erlang = require( '@stdlib/stats/base/dists/erlang' );

erlang

Erlang distribution.

var dist = erlang;
// returns {...}

The namespace contains the following distribution functions:

The namespace contains the following functions for calculating distribution properties:

The namespace contains a constructor function for creating an Erlang distribution object.

var Erlang = require( '@stdlib/stats/base/dists/erlang' ).Erlang;

var dist = new Erlang( 2, 4.0 );

var y = dist.logpdf( 0.8 );
// returns ~-0.65

Examples

var objectKeys = require( '@stdlib/utils/keys' );
var erlang = require( '@stdlib/stats/base/dists/erlang' );

console.log( objectKeys( erlang ) );