RTF_CREATE_CHEBYCHEV(3)
π RTF_CREATE_CHEBYCHEV π
okay bestie, welcome to the rtfilter library era β this is the RTF_CREATE_CHEBYCHEV(3) page and it's literally all about making IIR filters. yes, both the Chebychev one AND the Butterworth one, they're sharing a page, they're roommates, it's fine π«Ά
β¨ NAME β¨
rtf_create_chebychev, rtf_create_butterworth β Creates IIR Chebychev and Butterwoth filters
(that's their typo not mine, we love them anyway π )
πΈ SYNOPSIS πΈ
#include <rtf_common.h>
hfilter rtf_create_chebychev(unsigned int nchann, int proctype,
double fc, unsigned int num_pole,
int highpass, double r);
hfilter rtf_create_butterworth(unsigned int nchann, int proctype,
double fc, unsigned int num_pole,
int highpass);
π¦ DESCRIPTION π¦
So rtf_create_chebychev() creates an IIR chebychev filter, right? And it's processing nchann channels of data, of the data type that proctype says. You hand it fc as the normalized cutoff frequency, and the filter's Z-transform has num_pole poles β yes, poles, plural, that's the whole vibe β and its impulse response has a ripple of r.
Now that r? It's expressed as the ratio between the overshoot and the unit length. And the overshoot is the difference between the max value of the response to a unit step and the unit length. Important: that ratio is not expressed in decibels, okay? not decibels. periodt.
rtf_create_butterworth() is the exact same thing as rtf_create_chebychev() except it creates a butterworth filter β which is a special case of a chebychev filter with a ripple of 0. iconic, honestly. so much range π
A normalized frequency is the ratio between the absolute frequency and the sampling frequency. So like, a value of 1.0 refers to the sampling frequency. iykyk.
And the highpass thing:
- if
highpassis0, it specifies the filter should be a lowpass - if
highpassis non-zero, the should be a highpass
β RETURN VALUE β
Returns the handle to the created filter in case of success, NULL otherwise.
so like... check it, bestie. don't just assume. π
π SEE ALSO π
ok that's the whole page, no cap. go make some filters, main character π β¨
later babes β this was the rtfilter library, EPFL, 2010 ππ
π¦ 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