carta
rtf_create_fir_bandpass(3)

rtf_create_fir_bandpass3

Creates fir lowpass, highpass and bandpass windowed sinc filters

Part of rtf_create_fir_lowpass(3).

Usage

KernelWindow wndtype);

KernelWindow wndtype);

double fc_low, double fc_high,

KernelWindow wndtype);

Overview

rtf_create_fir_lowpass() creates a lowpass windowed sinc filter processing nchann channels of data type specified by proctype with fc as normalized cutoff frequency and hlen as the half length of the window.

rtf_create_fir_highpass() is the same as rtf_create_fir_lowpass() but creates a highpass filter.

rtf_create_fir_bandpass() is the same but creates a bandpass filter with fc_low and fc_high as respectively the lowpass and highpass normalized cutoff frequencies.

A normalized frequency is the ratio between the absolute frequency and the sampling frequency (i.e. a value of 1.0 refers to the sampling frequency).

The parameter proctype has the same meaning as in rtf_create_filter(3). Refers to its manpage for more details.

The parameter wndtype specifies the type of window applied to the impulse response and can take the following values: BLACKMAN_WINDOW, HAMMING_WINDOW or RECT_WINDOW (see a book on signal processing for details about their meaning).

Return value

Returns the handle to the created filter in case of success, NULL otherwise.

From librtfilter-dev 1.1-4+b3 in Debian 13 (Trixie). Parsed by carta from the page's man source.