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 highpass is 0, it specifies the filter should be a lowpass
  • if highpass is 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