4.0.0 • Published 8 months ago

binomial-pmf v4.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 months ago

binomial-pmf

Binomial probability mass function.

Example

const pmf = require('binomial-pmf');

pmf(2, 3, 0.7);
// => 0.441

Installation

$ npm install binomial-pmf

API

const pmf = require('binomial-pmf');

pmf(k, n, p)

Returns the probability of getting exactly Number k successes in Number n trials given that the probability of a success is Number p.

4.0.0

8 months ago

3.0.1

11 months ago

2.0.0

5 years ago

1.0.5

8 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago