返回介绍

概述

文章

用户指南

NumPy 参考手册

其他文档

Statistics

发布于 2023-06-23 19:27:33 字数 7687 浏览 0 评论 0 收藏 0

Order statistics

methoddescription
aminopen in new window(a[, axis, out, keepdims, initial, where])Return the minimum of an array or minimum along an axis.
amaxopen in new window(a[, axis, out, keepdims, initial, where])Return the maximum of an array or maximum along an axis.
nanminopen in new window(a[, axis, out, keepdims])Return minimum of an array or minimum along an axis, ignoring any NaNs.
nanmaxopen in new window(a[, axis, out, keepdims])Return the maximum of an array or maximum along an axis, ignoring any NaNs.
ptpopen in new window(a[, axis, out, keepdims])Range of values (maximum - minimum) along an axis.
percentileopen in new window(a, q[, axis, out, …])Compute the q-th percentile of the data along the specified axis.
nanpercentileopen in new window(a, q[, axis, out, …])Compute the qth percentile of the data along the specified axis, while ignoring nan values.
quantileopen in new window(a, q[, axis, out, overwrite_input, …])Compute the q-th quantile of the data along the specified axis.
nanquantileopen in new window(a, q[, axis, out, …])Compute the qth quantile of the data along the specified axis, while ignoring nan values.

Averages and variances

methoddescription
medianopen in new window(a[, axis, out, overwrite_input, keepdims])Compute the median along the specified axis.
averageopen in new window(a[, axis, weights, returned])Compute the weighted average along the specified axis.
meanopen in new window(a[, axis, dtype, out, keepdims])Compute the arithmetic mean along the specified axis.
stdopen in new window(a[, axis, dtype, out, ddof, keepdims])Compute the standard deviation along the specified axis.
varopen in new window(a[, axis, dtype, out, ddof, keepdims])Compute the variance along the specified axis.
nanmedianopen in new window(a[, axis, out, overwrite_input, …])Compute the median along the specified axis, while ignoring NaNs.
nanmeanopen in new window(a[, axis, dtype, out, keepdims])Compute the arithmetic mean along the specified axis, ignoring NaNs.
nanstdopen in new window(a[, axis, dtype, out, ddof, keepdims])Compute the standard deviation along the specified axis, while ignoring NaNs.
nanvaropen in new window(a[, axis, dtype, out, ddof, keepdims])Compute the variance along the specified axis, while ignoring NaNs.

Correlating

methoddescription
corrcoefopen in new window(x[, y, rowvar, bias, ddof])Return Pearson product-moment correlation coefficients.
correlateopen in new window(a, v[, mode])Cross-correlation of two 1-dimensional sequences.
covopen in new window(m[, y, rowvar, bias, ddof, fweights, …])Estimate a covariance matrix, given data and weights.

Histograms

methoddescription
histogramopen in new window(a[, bins, range, normed, weights, …])Compute the histogram of a set of data.
histogram2dopen in new window(x, y[, bins, range, normed, …])Compute the bi-dimensional histogram of two data samples.
histogramddopen in new window(sample[, bins, range, normed, …])Compute the multidimensional histogram of some data.
bincountopen in new window(x[, weights, minlength])Count number of occurrences of each value in array of non-negative ints.
histogram_bin_edgesopen in new window(a[, bins, range, weights])Function to calculate only the edges of the bins used by the histogram function.
digitizeopen in new window(x, bins[, right])Return the indices of the bins to which each value in input array belongs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文