Composite.to_uniform (function)


def to_uniform(self, sigma=1.0, N=1000, bins=10, range=None)

Convert the Composite distribution to a Uniform distribution via a Histogram distribution.

Under-the-hood, this calls Composite.to_histogram with the requested values of N, bins, and range and then calls Histogram.to_uniform with the requested value of sigma.

Arguments

  • sigma (float, optional, default=1.0): the number of standard deviations to adopt as the lower and upper bounds of the uniform distribution.
  • N (int, optional, default=1000): 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.

Returns