CFDAutoperiod.detect#
- static CFDAutoperiod.detect(data, k=100, percentile=99, detrend_func='linear', window_func=None)#
Find periods in the given series.
- Parameters:
- dataarray_like
Data to be investigated. Must be squeezable to 1-d.
- kint, optional, default = 100
The number of times the data is randomly permuted while estimating the power threshold.
- percentileint, optional, default = 99
Percentage for the percentile parameter used in computing the power threshold. Value must be between 0 and 100 inclusive.
- detrend_func{‘constant’, ‘linear’}, optional, default = ‘linear’
The kind of detrending to be applied on the signal. If None, no detrending is applied.
- window_funcfloat, str, tuple, optional, default = None
Window function to be applied to the time series. Check
windowparameter documentation forscipy.signal.get_windowfunction for more information on the accepted formats of this parameter.
- Returns:
- NDArray
List of detected periods.
See also
scipy.signal.detrendRemove linear trend along axis from data.
scipy.signal.get_windowReturn a window of a given length and type.