resample

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 Downsample

func Downsample(
	input []float64,
	srate float64, upsampleFactor float64,
	downsampleFactor, filterOrder int,
) ([]float64, error)

Downsample performs discrete downsampling using FIR lowpass filter followed by skip sampling. If the input does not contain upsampled data, then the upsample factor should be 1.0. The input size must be >= 4 The downsample factor must be > 1. The sample rate must be positive. Returns non-nil error in case of failure.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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