Uniform.to_histogram (function)
def to_histogram(self, N=100000, bins=10, range=None, wrap_at=None)
Convert the Uniform distribution to a Histogram distribution.
Under-the-hood, this calls Uniform.sample with size=N
and wrap_at=False
and passes the resulting array as well as the requested bins
and range
to Histogram.from_data.
Arguments
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 forwrap_at
of the returned Histogram. If None or not provided, will default to Uniform.wrap_at.
Returns
- a Histogram object