fft_spectra

fft_spectra(input_dataframe: pd.DataFrame, columns: Iterable[str] | None = None, sampling_rate: int | float = 128, norm: bool = False) pd.DataFrame[source]

Calculate the FFT of accelerometry data.

Parameters
  • input_dataframe (pd.DataFrame) – Dataframe containing accelerometry data.

  • columns (Iterable[str], optional) – Columns co calculate the FFT for, by default None which results in all columns to be used

  • sampling_rate (int) – Number of sample per second, by default 128

  • norm (bool) – Whether to normalize the the data to 1 or not, by default False

Returns

FFT spectra of the accelerometry data.

Return type

pd.DataFrame