go-dsp: github.com/mjibson/go-dsp/window Index | Files

package window

import "github.com/mjibson/go-dsp/window"

Package window provides window functions for digital signal processing.

Index

func Apply

func Apply(x []float64, windowFunction func(int) []float64)

Apply applies the window windowFunction to x.

func Bartlett

func Bartlett(L int) []float64

Bartlett returns an L-point Bartlett window. Reference: http://www.mathworks.com/help/signal/ref/bartlett.html

func Hamming

func Hamming(L int) []float64

Hamming returns an L-point symmetric Hamming window. Reference: http://www.mathworks.com/help/signal/ref/hamming.html

func Hann

func Hann(L int) []float64

Hann returns an L-point Hann window. Reference: http://www.mathworks.com/help/signal/ref/hann.html

func Rectangular

func Rectangular(L int) []float64

Rectangular returns an L-point rectangular window (all values are 1).

Files

window.go

Package window imports 1 packages (graph) and is imported by 2 packages. Updated 2013-04-21. Refresh.