frequency method

double frequency(
  1. int index,
  2. double samplesPerSecond
)

Returns the frequency that the given index of FFT output represents.

samplesPerSecond is the sampling rate of the input signal in Hz. The result is also in Hz.

Implementation

double frequency(int index, double samplesPerSecond) =>
    _fft.frequency(index, samplesPerSecond);