qampy.helpers#
Convenient helper functions
Functions
|
Calculate the absolute squared of a complex number |
|
Convert input from dB(m) units to linear units |
|
Remove N samples from the front and end of the input field. |
|
find pilot index for object with both pilot sequence (at the beginning) and phase pilot. |
Obtain shift factor (x_shift, y_shift) that is used to center the signal. |
|
|
Convert input from linear units to dB(m) |
Normalise and center the input field, by calculating the mean power for each polarisation separate and dividing by its square-root |
|
|
Normalise and center the input field only based on pilot symbols, by calculating the mean power for each polarisation separate and dividing by its square-root |
|
Rescale the (1-pol) signal to (-swing, swing). |
|
Change (1-pol) signal mid-position to given value and rescale the real signal to (-swing, swing). |
|
Move the (1-pol) signal's mid-position to given value |