SciPy

This is documentation for an old release of SciPy (version 0.17.1). Read this page in the documentation of the latest stable release (version 1.15.1).

scipy.stats.mstats.find_repeats

scipy.stats.mstats.find_repeats(arr)[source]

Find repeats in arr and return a tuple (repeats, repeat_count).

The input is cast to float64. Masked values are discarded.

Parameters:

arr : sequence

Input array. The array is flattened if it is not 1D.

Returns:

repeats : ndarray

Array of repeated values.

counts : ndarray

Array of counts.