OnlineFFTPeriodicityDetector.detect#

OnlineFFTPeriodicityDetector.detect(data, max_period_count=None)#

Update the frequency spectrum and detect periodicities.

Process new samples through the detector’s circular buffer, updating the frequency spectrum and detecting periodicities in the signal using the SDFT algorithm.

Parameters:
datanumpy.floating or array_like

New samples to process. Can be a single value or an array of values. Multi-dimensional arrays will be flattened.

max_period_countint, optional, default = None

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

Returns:
numpy.ndarray

Array of detected periods sorted by their amplitude strength in descending order.