Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Downsample ¶
func Downsample( input []float64, srate float64, downsampleFactor, filterOrder int, ) ([]float64, error)
Downsample performs discrete downsampling using FIR lowpass filter followed by skip sampling. 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.
func Resample ¶
func Resample( input []float64, srate float64, upsampleFactor, downsampleFactor, filterOrder int, ) ([]float64, error)
Resample performs discrete upsampling followed by discrete downsampling. The input size must be >= 4 The upsample factor must be >= 2. The downsample factor must be >= 2. The sample rate must be positive. Returns non-nil error in case of failure.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.