DistributionCollection.get_distributions_with_values (function)
def get_distributions_with_values(self, values=None, as_univariates=False)
Expose the distributions and the values that will be applied when calling DistributionCollection.pdf, DistributionCollection.logpdf, DistributionCollection.cdf, or DistributionCollection.logcdf
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.
- dictionary of distribution: value (list or float) pairs