dft

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(
	srate float64, floatVals []float64, scaling transform.Scaling) *freqresponse.FreqResponse

Analyze runs transform.AnalyzeTimeFreqTransform with the DFT transform. Before running the DFT, the float values will be converted to complex numbers and then (if needed) padded with a zero to make an even length.

func DFT

func DFT(vals []complex128, scaling transform.Scaling) ([]complex128, error)

DFT transform. Can be used for both forward (anaysis) and inverse (synthesis) transform by selecting appropriate scaling. Returns non-nil error if input size is not even.

Types

This section is empty.

Jump to

Keyboard shortcuts

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