{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _continuous_distns / rv_histogram / __init__

function

scipy.stats._continuous_distns:rv_histogram.__init__

source: /scipy/stats/_continuous_distns.py :12102

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__