Delta.to_samples (function)
def to_samples(self, N=100000, wrap_at=None)
Convert the Delta distribution to a Samples distribution.
Under-the-hood, this calls Delta.sample with size=N
and wrap_at=False
and passes the resulting array to Samples.init.
-
N
(int, optional, default=100000): number of samples to sample. -
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 Delta.wrap_at.
- a Histogram object