hotstepper.Sequency.frequency_spectrum

Sequency.frequency_spectrum(data, sampling_frequency=1)

A basic implementation of the Fast Fourier Transform power spectrum as implemented in Numpy.fft.fft.

Parameters
  • data (array_like) – The data that the frequency spectrum is generated from.

  • sampling_frequency (int, Optional) – The sampling frequency used to scale the frequency spectrum, specifically this will need to be tuned based on your data as different scalings will be required to suit the type and density of data points.

Returns

frequencies, spectrum_amplitudes

Return type

tuple(array, array)

References