distributions¶
The distributions module contains a selection of probability densities and methods, which are primarily used to build prior probability densities in PBjam. These classes to some extent mimic those of the scipy.stats package in terms of their inputs and functionality.
- pbjam.distributions.getQuantileFuncs(data, cut=5, densityScale=30, **kwargs)[source]¶
Compute distribution methods for arbitrary distributions.
All distributions are treated as separable.
- Parameters:
data (array) – Array of samples to compute the distribution functions of.
- Returns:
ppfs (list) – List of callable functions to evaluate the ppfs of the samples.
pdfs (list) – List of callable functions to evaluate the pdfs of the samples.
logpdfs (list) – List of callable functions to evaluate the logpdfs of the samples.
cdfs (list) – List of callable functions to evaluate the cdfs of the samples.