Custom Power Amplifier

Inheritance diagram of hermespy.simulation.rf_chain.power_amplifier.CustomPowerAmplifier

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 (np.ndarray)

  • gain (np.ndarray)

  • phase (np.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 (np.ndarray) – Sample vector of the signal feeding into the power amplifier.

Returns:

Distorted signal after amplification modeling.

Return type:

np.ndarray

property gain: ndarray
property input: ndarray
property phase: ndarray