ACFPeriodicityDetector.detect#

static ACFPeriodicityDetector.detect(data, window_func='boxcar', detrend_func='linear', max_period_count=None)#

Find periods in the given series.

Parameters:
dataarray_like

Data to be investigated. Must be squeezable to 1-d.

window_funcfloat, str, tuple, optional, default = ‘boxcar’

Window function to apply. See scipy.signal.get_window for accepted formats of the window parameter.

detrend_func{‘constant’, ‘linear’}, optional, default = ‘linear’

The kind of detrending to apply. If None, no detrending is applied.

max_period_countint, optional, default = None

Maximum number of periods to return. If None, all detected periods are returned.

Returns:
NDArray

Array of detected periodicity lengths, sorted by strength in descending order

See also

scipy.signal.get_window

Return a window of a given length and type.