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:
- Raises:
- ValueError – If input, gain, and phase are not vectors of identical length. 
 - classmethod Deserialize(process)[source]¶
- Deserialize an object’s state. - Objects cannot be deserialized directly, instead a - Factorymust be instructed to carry out the deserialization process.- Parameters:
- process ( - DeserializationProcess) – The current stage of the deserialization process. This object is generated by the- Factoryand provides an interface to deserialization methods supporting multiple backends.
- Return type:
- Returns:
- The deserialized object. 
 
 - model(input_signal)[source]¶
- Model signal amplification characteristics. - Parameters:
- input_signal ( - ndarray) – Sample vector of the signal feeding into the power amplifier.
- Return type:
 - Returns: Distorted signal after amplification modeling. 
 - serialize(process)[source]¶
- Serialize this object’s state. - Objects cannot be serialized directly, instead a - Factorymust be instructed to carry out the serialization process.- Parameters:
- process ( - SerializationProcess) – The current stage of the serialization process. This object is generated by the- Factoryand provides an interface to serialization methods supporting multiple backends.
- Return type: