rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
Functions
biquad.cpp File Reference

Functions

static float getK (float samplingFrequency, float cutoff)
 
static float getNorm (float K, float Q)
 

Function Documentation

◆ getK()

static float getK ( float  samplingFrequency,
float  cutoff 
)
static

Definition at line 24 of file biquad.cpp.

24 {
25 return tanf_taylor(CONST_PI * cutoff / samplingFrequency);
26}

Referenced by Biquad::configureBandpass(), Biquad::configureHighpass(), and Biquad::configureLowpass().

Here is the caller graph for this function:

◆ getNorm()

static float getNorm ( float  K,
float  Q 
)
static

Definition at line 28 of file biquad.cpp.

28 {
29 return 1 / (1 + K / Q + K * K);
30}

Referenced by Biquad::configureBandpass(), Biquad::configureHighpass(), and Biquad::configureLowpass().

Here is the caller graph for this function:

Go to the source code of this file.