Returns a cumulative frequency histogram, using the histogram function.
Parameters : | a : array_like
numbins: int, optional :
defaultlimits: tuple (lower, upper), optional :
weights: array_like, optional :
|
---|---|
Returns : | cumfreq : ndarray
lowerreallimit : float
binsize : float
extrapoints : int
|
Examples
>>> x = [1, 4, 2, 1, 3, 1]
>>> cumfreqs, lowlim, binsize, extrapoints = sp.stats.cumfreq(x, numbins=4)
>>> cumfreqs
array([ 3., 4., 5., 6.])
>>> cumfreqs, lowlim, binsize, extrapoints = ... sp.stats.cumfreq(x, numbins=4, defaultreallimits=(1.5, 5))
>>> cumfreqs
array([ 1., 2., 3., 3.])
>>> extrapoints
3