MVSamples.to_mvhistogram (function)
def to_mvhistogram(self, N=1000000.0, bins=15, range=None)
Convert the MVSamples distribution to an MVHistogram distribution.
Under-the-hood, this calls MVSamples.sample with size=N and wrap_at=False
and passes the resulting array as well as the requested bins and range
to MVHistogram.from_data.
Arguments
N(int, optional, default=1e6): number of samples to use for the histogram.bins(int, optional, default=15): number of bins to use for the histogram.range(tuple or None): range to use for the histogram.
Returns
- an MVHistogram object