Function sdr::agc::agc
[−]
[src]
pub fn agc<T: SampleType>(x: &[T], a: f32, r: f32) -> f32
Compute the required gain in dB required to bring the input block x
up to the reference level r
, multiplying by sub-unity constant a
to
prevent large shifts.
This is a fairly simple and slow implementation which is not suitable for high data rates.