go-dsp is a digital signal processing package for the Go programming language.
- fft - fast Fourier transform
- fft.FFT([]complex128) []complex128 - forward FFT for complex inputs
- fft.IFFT([]complex128) []complex128 - inverse FFT for complex inputs
- fft.FFT_real([]float64) []complex128 - forward FFT for real inputs
- fft.IFFT_real([]float64) []complex128 - inverse FFT for real inputs
$ goinstall "github.com/mjibson/go-dsp/fft"
package main
import "github.com/mjibson/go-dsp/fft"
import "fmt"
func main() {
fmt.Println(fft.FFT_real([]float64 {1, 2, 3}))
}
- All FFT functions:
- use goroutines
Matt Jibson
Licensed under the BSD license.