Numpy Statistics 统计函数

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.
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值