Class: DiscreteDistribution

stats.DiscreteDistribution()

Base class of the discrete distributions (support on integers).

Constructor

new DiscreteDistribution()

Source:

Methods

(protected) _cdf()

Source:

(protected) _isf()

Source:

(protected) _ppf()

Smallest integer k with cdf(k) >= p.

Source:

logpmf(k) → {number|Array}

Logarithm of the probability mass function.

Parameters:
Name Type Description
k number | Array
Source:
Returns:
Type
number | Array

pdf(_x) → {number|Array}

Not available: discrete distributions have a DiscreteDistribution#pmf.

Parameters:
Name Type Description
_x number | Array
Source:
Throws:
Error
Returns:
Type
number | Array

pmf(k) → {number|Array}

Probability mass function.

Parameters:
Name Type Description
k number | Array
Source:
Returns:
Type
number | Array