bundles / scipy 1.17.1 / scipy / stats / _continuous_distns / rv_histogram / __init__
function
scipy.stats._continuous_distns:rv_histogram.__init__
Signature
def __init__ ( self , histogram , * args , density = None , ** kwargs ) Summary
Create a new distribution using the given histogram
Parameters
histogram: tuple of array_likeTuple 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, optionalIf 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=Truefor backward compatibility, but warns if the bin widths are variable. Setdensityexplicitly to silence the warning.
Aliases
-
scipy.stats.rv_histogram.__init__