RTF_CREATE_FIR_LOWPASS(3)
β¨ RTF_CREATE_FIR_LOWPASS β¨
okay bestie, sit down, hydrate, and let me tell you about the absolute icon that is rtf_create_fir_lowpass(3) from the rtfilter library. yes this is a real manual page and yes it's giving very much signal-processing-coded π
πΈ NAME πΈ
rtf_create_fir_lowpass, rtf_create_fir_highpass, rtf_create_fir_bandpass β bestie these three literally create FIR lowpass, highpass and bandpass windowed sinc filters. that's the whole job. that's the vibe. slay π
π¦ SYNOPSIS π¦
#include <rtf_common.h>
hfilter rtf_create_fir_lowpass(unsigned int nch, int proctype,
double fc, unsigned int hlen,
KernelWindow wndtype);
hfilter rtf_create_fir_highpass(unsigned int nch, int proctype,
double fc, unsigned int hlen,
KernelWindow wndtype);
hfilter rtf_create_fir_bandpass(unsigned int nchann, int proctype,
double fc_low, double fc_high,
unsigned int hlen,
KernelWindow wndtype);
π DESCRIPTION π
so, rtf_create_fir_lowpass() creates a lowpass windowed sinc filter. it processes nchann channels of whatever data type proctype says, with fc as the normalized cutoff frequency and hlen as the half length of the window. periodt.
rtf_create_fir_highpass() is literally the same thing as rtf_create_fir_lowpass() except β plot twist β it makes a highpass filter instead. same energy, different frequency direction π
rtf_create_fir_bandpass() is also the same, but it makes a bandpass filter, with fc_low and fc_high as the lowpass and highpass normalized cutoff frequencies respectively. two cutoffs, one icon π
now, a normalized frequency is the ratio between the absolute frequency and the sampling frequency. iykyk but if you don't: a value of 1.0 refers to the sampling frequency. so like, that's the whole scale, bestie π
the parameter proctype means exactly the same thing as it does in rtf_create_filter(3). go read that manpage for the details, i'm not gonna repeat her whole lore here π
the parameter wndtype specifies the type of window applied to the impulse response, and it can take these values:
BLACKMAN_WINDOWπ€HAMMING_WINDOWπ΅RECT_WINDOWβ¬
(if you want the ~meaning~ behind those, go pick up a book on signal processing, bestie. that's above my pay grade and also above this manpage's job description π)
β RETURN VALUE β
returns the handle to the created filter when everything goes right π«Ά and NULL otherwise π (no handle for you, bestie).
π SEE ALSO π
and that's the whole page, bestie!! this lil masterpiece is brought to you by EPFL, dated 2010, living inside the rtfilter library man pages. go forth and filter something iconic πβ¨π
π¦ where this page comes from
- debian bookworm: librtfilter-dev 1.1-4+b2
- debian trixie: librtfilter-dev 1.1-4+b3
- ubuntu jammy: librtfilter-dev 1.1-4build1
- ubuntu noble: librtfilter-dev 1.1-4build2
- ubuntu questing: librtfilter-dev 1.1-4build2
- Copyright 2010 (c) EPFL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms