package
0.0.0-20240315130806-691d93b1dbec
Repository: https://github.com/jaymzee/go-dsp.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

signal

Functions

func Complex

func Complex(x []float64) []complex128

Complex converts reals to complex

func Conv

func Conv(x, h []float64) []float64

Conv returns the convolution of x and h. The computational complexity is O(n²) so for large input signals you should use fft.Conv instead.

func Log2

func Log2(x int) int

Log2 returns the radix-2 logarithm of integer x using a very fast algorithm

func Map

func Map(f func(float64) float64, x []float64) []float64

Map applies f to each real element of x and returns the results

func MapComplex

func MapComplex(f func(complex128) complex128, x []complex128) []complex128

MapComplex applies f to each complex element of x and returns the results

func MapReal

func MapReal(f func(complex128) float64, x []complex128) []float64

MapReal applies f to each complex element of x and returns the results

func Max

func Max(x []float64) float64

Max finds the maximum value in x

func Min

func Min(x []float64) float64

Min finds the minimum value in x

Sub Packages

  • fft: Package fft provides functions for computing the Fast Fourier Transform

  • filter: Package filter contains various DSP filtering algorithms