MVHistogram.to_samples (function)
def to_samples(self, dimension, N=100000, wrap_at=None)
Convert the MVHistogram distribution to a Samples univariate distribution.
Under-the-hood, this calls MVHistogram.to_histogram followed by Histogram.to_samples.
Arguments
dimension
(int or str): index or label of the dimension to use for the univariate distribution.N
(int, optional, default=1e5): number of samples to draw and store in the Samples distribution. See Histogram.to_samples.wrap_at
(float or None, optional, default=None): value to set forwrap_at
of the returned Histogram. If None or not provided, will default to MVHistogram.wrap_at.
Returns
- a Histogram object