https://docs.scipy.org/doc/numpy/reference/routines.statistics.html
排序统计
方法 | 描述 |
---|
amin(a[, axis, out, keepdims]) | Return the minimum of an array or minimum along an axis. |
amax(a[, axis, out, keepdims]) | Return the maximum of an array or maximum along an axis. |
nanmin(a[, axis, out, keepdims]) | Return minimum of an array or minimum along an axis, ignoring any NaNs. |
nanmax(a[, axis, out, keepdims]) | Return the maximum of an array or maximum along an axis, ignoring any NaNs. |
ptp(a[, axis, out]) | Range of values (maximum - minimum) along an axis. |
percentile(a, q[, axis, out, …]) | Compute the qth percentile of the data along the specified axis. |
nanpercentile(a, q[, axis, out, …]) | Compute the qth percentile of the data along the specified axis, while ignoring nan values. |
平均数和方差
方法 | 描述 |
---|
median(a[, axis, out, overwrite_input, keepdims]) | 计算给定方向的中值 |
average(a[, axis, weights, returned]) | 计算给定方向的加权平均数 |
mean(a[, axis, dtype, out, keepdims]) | 计算指定方向的均值 |
std(a[, axis, dtype, out, ddof, keepdims]) | 计算指定方向的标准差 |
var(a[, axis, dtype, out, ddof, keepdims]) | 计算指定方向的标准差 |
nanmedian(a[, axis, out, overwrite_input, …]) | 忽略空值,计算给定方向的中值 |
nanmean(a[, axis, dtype, out, keepdims]) | 忽略空值,计算给定方向的平均值 |
nanstd(a[, axis, dtype, out, ddof, keepdims]) | 忽略空值,计算给定方向的标准差 |
nanvar(a[, axis, dtype, out, ddof, keepdims]) | 忽略空值,计算给定方向的方差 |
相关性
方法 | 描述 |
---|
corrcoef(x[, y, rowvar, bias, ddof]) | Return Pearson product-moment correlation coefficients. |
correlate(a, v[, mode]) | Cross-correlation of two 1-dimensional sequences. |
cov(m[, y, rowvar, bias, ddof, fweights, …]) | Estimate a covariance matrix, given data and weights. |
直方图
方法 | 描述 |
---|
histogram(a[, bins, range, normed, weights, …]) | Compute the histogram of a set of data. |
histogram2d(x, y[, bins, range, normed, weights]) | Compute the bi-dimensional histogram of two data samples. |
histogramdd(sample[, bins, range, normed, …]) | Compute the multidimensional histogram of some data. |
bincount(x[, weights, minlength]) | Count number of occurrences of each value in array of non-negative ints. |
digitize(x, bins[, right]) | Return the indices of the bins to which each value in input array belongs. |