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

◆ decay_from_pole_radius()

MAYAFLUX_API double MayaFlux::Kinesis::Discrete::decay_from_pole_radius ( double  radius,
double  sample_rate 
)
noexcept

Time for an impulse response of a given pole radius to fall by 1/e.

Parameters
radiusPole radius
sample_rateSample rate in Hz
Returns
Seconds, zero for a radius at or below zero

Definition at line 149 of file Coefficients.cpp.

150{
151 const double r = std::min(radius, 1.0 - 1e-12);
152 if (r <= 0.0)
153 return 0.0;
154 return -1.0 / (sample_rate * std::log(r));
155}
float radius

References radius.

Referenced by decay_from_q().

+ Here is the caller graph for this function: