MayaFlux 1.0.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 424 of file Coefficients.cpp.

425{
426 const double p = std::clamp(pole, 0.0, 0.9999);
427 a.assign({ 1.0, -p });
428 b.assign({ 1.0, -1.0 });
429}
size_t a
size_t b

References a, and b.