This is documentation for an old release of SciPy (version 0.10.0). Read this page in the documentation of the latest stable release (version 1.15.1).
Calculate the score at the given per percentile of the sequence a.
For example, the score at per=50 is the median. If the desired quantile lies between two data points, we interpolate between them. If the parameter limit is provided, it should be a tuple (lower, upper) of two values. Values of a outside this (closed) interval will be ignored.
Parameters : | a : ndarray
per : int or float
limit : tuple, optional
|
---|---|
Returns : | score : float
|
See also
Examples
>>> from scipy import stats
>>> a = np.arange(100)
>>> stats.scoreatpercentile(a, 50)
49.5