MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ dc_block()

MAYAFLUX_API void MayaFlux::Kinesis::Discrete::dc_block ( double  pole,
std::vector< double > &  a,
std::vector< double > &  b 
)

DC blocking filter.

A zero at DC with a pole just inside it, removing constant offset while leaving everything above the corner essentially untouched. The corner frequency falls as pole approaches 1.0.

Parameters
polePole position, clamped to [0, 0.9999]; 0.995 is a typical value
aDenominator output, resized to 2, a[0] == 1.0
bNumerator output, resized to 2

Definition at line 291 of file Coefficients.cpp.

292{
293 const double p = std::clamp(pole, 0.0, 0.9999);
294 a.assign({ 1.0, -p });
295 b.assign({ 1.0, -1.0 });
296}
size_t a
size_t b

References a, and b.