polar_to_complex#
- class waveresponse.polar_to_complex(amp, phase, phase_degrees=False)[source]#
Convert polar coordinates (i.e., amplitude and phase) to complex numbers.
Given as:
A * exp(j * phi)where,
Ais the amplitude andphiis the phase.- Parameters:
amp (array-like) – Amplitude values.
phase (array-like) – Phase angle values.
phase_degrees (bool) – Whether the phase angles are given in ‘degrees’. If
False, ‘radians’ is assumed.
- Returns:
Complex numbers.
- Return type:
array