Class: ContinuousDistribution

stats.ContinuousDistribution()

Base class of the continuous distributions.

Constructor

new ContinuousDistribution()

Source:

Members

support

Lower end of the support.

Source:

Methods

(protected) _isf()

Source:

(protected) _ppf()

Generic quantile by bracketing and bisection on the cdf.

Source:

(protected) _sample()

Source:

(protected) _sf()

Source:

cdf(x) → {number|Array}

Cumulative distribution function P(X <= x).

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

interval(confidence) → {Array.<number>}

Equal-tail interval containing a fraction confidence of the probability mass.

Parameters:
Name Type Description
confidence number

In [0, 1].

Source:
Returns:

[lower, upper]

Type
Array.<number>

isf(q) → {number|Array}

Inverse survival function: x such that sf(x) = q.

Parameters:
Name Type Description
q number | Array

Probabilities in [0, 1].

Source:
Returns:
Type
number | Array

logcdf(x) → {number|Array}

Logarithm of the cumulative distribution function.

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

logpdf(x) → {number|Array}

Logarithm of the probability density function.

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

logsf(x) → {number|Array}

Logarithm of the survival function.

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

mean() → {number}

Source:
Returns:

The mean.

Type
number

median() → {number}

Source:
Returns:

The median.

Type
number

pdf(x) → {number|Array}

Probability density function.

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

ppf(q) → {number|Array}

Percent point function (quantile, inverse of the cdf).

Parameters:
Name Type Description
q number | Array

Probabilities in [0, 1].

Source:
Returns:
Type
number | Array

rvs()

Alias of ContinuousDistribution#sample (scipy name).

Source:

sample(sizeopt, rngopt) → {number|Array}

Draws random samples.

Parameters:
Name Type Attributes Default Description
size number | Array.<number> | null <optional>
null

Output shape.

rng Object <optional>

Optional Generator to draw from instead of the global generator.

Source:
Returns:
Type
number | Array

sf(x) → {number|Array}

Survival function P(X > x) = 1 - cdf(x), computed accurately in the upper tail.

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

std() → {number}

Source:
Returns:

The standard deviation.

Type
number

variance() → {number}

Source:
Returns:

The variance.

Type
number