Documentation ¶
Overview ¶
Package window provides Window Functions for singnal analysis
Index ¶
Constants ¶
View Source
const HammingConst = 25.0 / 46.0
HammingConst is the hamming window constant
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function func(buf []float64)
Function is a function that will do window things for you on a slice
func Blackman ¶
func Blackman() Function
Blackman modifies the buffer to a Blackman window
N = size n = element a = 0.16 a_0 = (1 - a) / 2 a_1 = 1 / 2 a_2 = a / 2 w[n] = a_0 - a_1 * cos((2 * pi * n) / N) + a_2 * cos((4 * pi * n) / N)
func Lanczos ¶ added in v1.5.0
func Lanczos() Function
Lanczos modifies the buffer to a Lanczos window
w[n] = sinc((2n / N) - 1)
N = size n = element k = 2 / N
buf[n] = sinc(kn - 1)
Click to show internal directories.
Click to hide internal directories.