pyhctsa.operations.model_fit.is_seasonal

pyhctsa.operations.model_fit.is_seasonal(y)

Fits a ‘sin1’ (single frequency sinusoid) model to the time series. The output is binary: 1 if the goodness of fit, R^2, exceeds 0.3 and the amplitude of the fitted periodic component exceeds 0.5, and 0 otherwise.

Parameters:
y : array-like

The input time series.

Returns:

Binary: 1 (= seasonal), 0 (= non-seasonal)

Return type:

bool