optic.comm.metrics.fastBERcalc
- fastBERcalc(rx, tx, M, constType, px=None)
Monte Carlo BER/SER/SNR calculation.
- Parameters:
rx (np.array) – Received symbol sequence.
tx (np.array) – Transmitted symbol sequence.
M (int) – Modulation order.
constType (string) – Modulation type: ‘qam’, ‘psk’, ‘pam’ or ‘ook’.
px ((M, 1) np.array) – Prior symbol probabilities.
- Returns:
BER (np.array) – Bit-error-rate.
SER (np.array) – Symbol-error-rate.
SNR (np.array) – Estimated SNR from the received constellation.
References
[1] Proakis, J. G., & Salehi, M. Digital Communications (5th Edition). McGraw-Hill Education, 2008.