dsp

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dsp provides digital signal processing primitives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Coefficients

func Coefficients(data []float64) []complex128

Coefficients computes the Discrete Fourier Transform of data using an iterative Cooley-Tukey radix-2 FFT. If len(data) is not a power of 2 the input is zero-padded to the next power of 2 before transformation.

The returned slice has length N (the padded length) and contains the full complex spectrum. For a real-valued input the positive-frequency coefficients are at indices 0..N/2 (inclusive).

Types

This section is empty.

Jump to

Keyboard shortcuts

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