MVGaussian.to_histogram (function)


def to_histogram(self, dimension, N=100000, bins=10, range=None, wrap_at=None)

Convert the MVGaussian distribution to a Histogram univariate distribution.

Under-the-hood, this calls MVGaussian.to_gaussian and then Gaussian.to_histogram.

Arguments

  • dimension (int or str): index or label of the dimension to use for the univariate distribution.
  • N (int, optional, default=100000): number of samples to use for the histogram.
  • bins (int, optional, default=10): number of bins to use for the histogram.
  • range (tuple or None): range to use for the histogram.
  • wrap_at (float or None, optional, default=None): value to set for wrap_at of the returned Histogram. If None or not provided, will default to MVGaussian.wrap_at.

Returns