testutil

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 TestResampledSignal

func TestResampledSignal(
	t *testing.T,
	upsampleFactor float64,
	downsampleFactor int,
	f func(input []float64, srate float64) ([]float64, error))

TestResampledSignal runs a signal through the given upsampled, downsample, or resample function and verifies that it produces a signal that closely matches the original (at the new sample rate).

Types

This section is empty.

Jump to

Keyboard shortcuts

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