sdr.AGC(attack: float, decay: float, reference: float = 1.0, streaming: bool = False)

Creates an automatic gain controller (AGC).

Parameters:
attack: float

The attack rate α. The attack rate is meant to attenuate strong signals. After n01/α samples the error will reduce to 1/e of its original value.

decay: float

The decay rate β. The decay rate is meant to amplify weak signals. After n01/β samples the error will reduce to 1/e of its original value.

reference: float = 1.0

The desired output magnitude.

streaming: bool = False

Indicates whether the AGC operates in streaming mode. In streaming mode, the gain is preserved between calls to __call__().