windows

package
v0.0.1-main.20230116-1... Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KaiserBesselNotSymmetricError = "scigo: Kaiser-Bessel window only implemented for symmetric windows"
	NumPointsEvenError            = "scigo: Kaiser-Bessel Derived windows are only defined for even number "
)
View Source
const WindowLengthError = "window length M must be a non-negative integer"

Variables

This section is empty.

Functions

func Kaiser

func Kaiser(M int, beta float64, sym bool) ([]float64, error)

Kaiser returns the Kaiser window Parameters:

  • M: the number of points in the window
  • beta: the beta parameter, used if sym is false.
  • sym: if true, generates a symmetric window, for use in filter design. Otherwise, generates a periodic window, for use in spectral analysis.

Returns:

  • out: the window, with the maximum value normalized to 1 (though the value 1 does not appear if sym is True)

func KaiserBesselDerived

func KaiserBesselDerived(M int, beta float64, sym bool) ([]float64, error)

KaiserBesselDerived returns the Kaiser-Bessel window Parameters:

  • M: the number of points in the window
  • beta: the beta parameter, used if sym is false.
  • sym: if true, generates a symmetric window, for use in filter design. Otherwise, generates a periodic window, for use in spectral analysis.

Returns:

  • out: the window, with the maximum value normalized to 1 (though the value 1 does not appear if sym is True)

Types

This section is empty.

Jump to

Keyboard shortcuts

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