Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FFTShiftF ¶
FFTShiftF shifts a buffer of floats. The passed buffer is modified. See http://www.mathworks.com/help/matlab/ref/fftshift.html
func MinMaxFloat ¶
MinMaxFloat returns the smallest and biggest samples in the buffer
func TotalEnergy ¶
TotalEnergy is the the sum of squared moduli See https://www.dsprelated.com/freebooks/mdft/Signal_Metrics.html
Types ¶
type DFT ¶
type DFT struct { // in audio, we only get real numbers // Coefs are the amount of signal energy at those frequency, // the amplitude is relative but can be compared as absolute values // between buffers. Coefs []complex128 SampleRate int // contains filtered or unexported fields }
DFT is the Discrete Fourier Transform representation of a signal https://en.wikipedia.org/wiki/Discrete_Fourier_transform
func (*DFT) BinWidth ¶
BinWidth is the width of a bin (in frequency). It is calculate by using the Nyquist frequency (sample rate/2) divided by the DFT size.
func (*DFT) ToFreqRange ¶
ToFreqRange returns a map with the frequency and their values (normalized)
Click to show internal directories.
Click to hide internal directories.