glucopy.metrics.dfa#

glucopy.metrics.dfa(df: DataFrame, scale='default', overlap: bool = True, integrate: bool = True, order: int = 1, show: bool = False, **kwargs)[source]#

Calculates the Detrended Fluctuation Analysis (DFA) using neurokit2.fractal_dfa().

For more information on the parameters and details see neurokit2.complexity.fractal_dfa().

Parameters:
  • per_day (bool, default False) – If True, returns a pandas.Series with the DFA for each day. If False, returns the DFA for the entire dataset. If a day has very few data points, the DFA for that day will be NaN.

  • others – For more information on the rest of the parameters see neurokit2.complexity.fractal_dfa().

Returns:

dfa – Detrended fluctuation analysis.

Return type:

float

Notes

This function is meant to be used by glucopy.Gframe.dfa()