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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestTimeFreqTransformForwardReverse

func TestTimeFreqTransformForwardReverse(t *testing.T, f transform.Transform)

TestTimeFreqTransformForwardReverse runs the transform twice, first with an impulse, then again with that transform output, to see if the original impulse is recovered.

func TestTimeFreqTransformGivenImpulse

func TestTimeFreqTransformGivenImpulse(t *testing.T, f transform.Transform)

TestTimeFreqTransformGivenImpulse sends a shifted impulse through the forward FFT. See http://www.sccon.ca/sccon/fft/fft3.htm

func TestTimeFreqTransformGivenShiftedImpulse

func TestTimeFreqTransformGivenShiftedImpulse(t *testing.T, f transform.Transform)

TestTimeFreqTransformGivenShiftedImpulse sends a shifted impulse through the forward FFT. See http://www.sccon.ca/sccon/fft/fft3.htm

func VerifyEqualWithin

func VerifyEqualWithin(t *testing.T, expected, actual []complex128, delta float64)

VerifyEqualWithin verifies that the given slices are the same length, and that all elements (real and imaginary components) are within the given delta of eachother.

Types

This section is empty.

Jump to

Keyboard shortcuts

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