Custom Power Amplifier¶
Fully customizable pwoer amplification model. The users may define their own gain and phase characteristics.
- class CustomPowerAmplifier(input, gain, phase, **kwargs)[source]¶
Bases:
PowerAmplifier
Model of a customized power amplifier.
- Parameters:
input (numpy.ndarray)
gain (numpy.ndarray)
phase (numpy.ndarray)
**kwargs (Any) – PowerAmplifier base class initialization arguments.
- Raises:
ValueError – If input, gain, and phase are not vectors of identical length.
- model(input_signal)[source]¶
Model signal amplification characteristics.
- Parameters:
input_signal (numpy.ndarray) – Sample vector of the signal feeding into the power amplifier.
- Returns:
Distorted signal after amplification modeling.
- Return type:
np.ndarray