Statistical Functions

Order statistics

cupy.amin

Returns the minimum of an array or the minimum along an axis.

cupy.amax

Returns the maximum of an array or the maximum along an axis.

cupy.nanmin

Returns the minimum of an array along an axis ignoring NaN.

cupy.nanmax

Returns the maximum of an array along an axis ignoring NaN.

cupy.percentile

Computes the q-th percentile of the data along the specified axis.

cupy.ptp

Returns the range of values (maximum - minimum) along an axis.

Means and variances

cupy.median

Compute the median along the specified axis.

cupy.average

Returns the weighted average along an axis.

cupy.mean

Returns the arithmetic mean along an axis.

cupy.var

Returns the variance along an axis.

cupy.std

Returns the standard deviation along an axis.

cupy.nanmedian

Compute the median along the specified axis, while ignoring NaNs.

cupy.nanmean

Returns the arithmetic mean along an axis ignoring NaN values.

cupy.nanvar

Returns the variance along an axis ignoring NaN values.

cupy.nanstd

Returns the standard deviation along an axis ignoring NaN values.

Histograms

cupy.histogram

Computes the histogram of a set of data.

cupy.histogram2d

Compute the bi-dimensional histogram of two data samples.

cupy.histogramdd

Compute the multidimensional histogram of some data.

cupy.bincount

Count number of occurrences of each value in array of non-negative ints.

cupy.digitize

Finds the indices of the bins to which each value in input array belongs.

Correlations

cupy.corrcoef

Returns the Pearson product-moment correlation coefficients of an array.

cupy.cov

Returns the covariance matrix of an array.

cupy.correlate

Returns the cross-correlation of two 1-dimensional sequences.