DistributionCollection.pdf (function)
def pdf(self, values=None, as_univariates=False)
Compute the pdf of drawing values
from the stored distributions.
See also:
- DistributionCollection.logpdf
- DistributionCollection.cdf
- DistributionCollection.logcdf
- DistributionCollection.get_distributions_with_values
values
(list, tuple, array or None, optional, default=None): list of values in same length and order as DistributionCollection.distributions or DistributionCollection.distributions_unpacked (seeas_univariates
). If not provided or None, the latest values from DistributionCollection.sample will be assumed (respecting the value ofas_univariates
). If no cached samples are available, a ValueError will be raised.as_univariates
(bool, optional, default=False): whethervalues
corresponds to the passed distributions (DistributionCollection.distributions) or the underlying unpacked distributions (DistributionCollection.distributions_unpacked). If the former (as_univariates=False
), covariances will be respected from any underlying multivariate distributions. If the latter (as_univariates=True
) covariances will be ignored.
- float or array of floats
- ValueError: if
values
is None, but no cached samples are available.