Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FIR ¶
type FIR struct {
Sinc *Sinc
}
FIR represents a Finite Impulse Response filter taking a sinc. https://en.wikipedia.org/wiki/Finite_impulse_response
type Sinc ¶
type Sinc struct {
CutOffFrequency float64
SampleRate int
// Taps are the numbers of samples we go back in time when processing the sync function.
// The tap numbers will affect the shape of the filter. The more taps, the more
// shape but the more delays being injected.
Taps int
// Window function to apply.
Window window.GeneratorFunc
// contains filtered or unexported fields
}
Sinc represents a sinc function The sinc function also called the "sampling function," is a function that arises frequently in signal processing and the theory of Fourier transforms. The full name of the function is "sine cardinal," but it is commonly referred to by its abbreviation, "sinc." http://mathworld.wolfram.com/SincFunction.html
func (*Sinc) HighPassCoefficients ¶
HighPassCoefficients returns the coeficients to create a high pass filter
func (*Sinc) LowPassCoefficients ¶
LowPassCoefficients returns the coeficients to create a low pass filter
func (*Sinc) TransitionFrequency ¶
TransitionFrequency returns a ratio of the cutoff frequency and the sample rate.