This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / stats / _continuous_distns / rv_histogram / __init__

function

scipy.stats._continuous_distns:rv_histogram.__init__

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_continuous_distns.py:12202

Signature

def __init__(self, histogram, *args, density = None, **kwargs)

Summary

Create a new distribution using the given histogram

Parameters

histogram : tuple of array_like

Tuple containing two array_like objects. The first containing the content of n bins, the second containing the (n+1) bin boundaries. In particular, the return value of np.histogram is accepted.

density : bool, optional

If False, assumes the histogram is proportional to counts per bin; otherwise, assumes it is proportional to a density. For constant bin widths, these are equivalent. If None (default), sets density=True for backward compatibility, but warns if the bin widths are variable. Set density explicitly to silence the warning.

Aliases

  • scipy.stats.rv_histogram.__init__