window

package
v1.8.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Overview

Package window provides Window Functions for singnal analysis

See https://wikipedia.org/wiki/Window_function

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 Bartlett

func Bartlett() Function

Bartlett modifies the buffer to a Bartlett window

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 CosSum

func CosSum(a0 float64) Function

CosSum modifies the buffer to conform to a cosine sum window following a0

func Hamming

func Hamming() Function

Hamming modifies the buffer to a Hamming window

func Hann

func Hann() Function

Hann modifies the buffer to a Hann window

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)

https://www.wikiwand.com/en/Window_function#/Other_windows

func PlanckTaper

func PlanckTaper(e float64) Function

PlanckTaper modifies the buffer to a Planck-taper window

not sure how i got this

func Rectangle

func Rectangle() Function

Rectangle is just do nothing

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL