Uniform.to_samples (function)


def to_samples(self, N=100000, wrap_at=None)

Convert the Uniform distribution to a Samples distribution.

Under-the-hood, this calls Uniform.sample with size=N and wrap_at=False and passes the resulting array to Samples.init.

Arguments

  • N (int, optional, default=100000): number of samples to sample.

  • 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 Uniform.wrap_at.

Returns