qampy.core.signal_quality#

Functions for calculating various signal quality metrics

Functions

cabssquared(x)

Calculate the absolute squared of a complex number

cal_evm(sig, M[, known])

Calculation of the linear Error Vector Magnitude for an M-QAM signal.

cal_mi(signal, symbols_tx, alphabet, N0[, fast])

Calculate the mutual information for a given (noisy) signal array and the transmitted symbol array.

cal_mi_mc(noise, symbols, N0)

cal_mi_mc_fast(sig, sig_tx, symbols, N0)

cal_s0(E, M)

Calculate the signal power S0 according to formula given in Gao and Tepedelenlioglu in IEEE Trans in Signal Processing Vol 53, pg 865 (2005).

cal_scaling_factor_qam(M)

Calculate the scaling factor for normalising MQAM symbols to 1 average Power

cal_ser_qam(data_rx, symbol_tx, M[, method])

Calculate the symbol error rate

cal_snr_blind_qpsk(E)

Calculates the SNR of a QPSK signal based on the variance of the constellation assmuing no symbol errors

cal_snr_qam(E, M)

Calculate the signal to noise ratio SNR according to formula given in _[1]

cal_symbols_qam(M)

Generate the symbols on the constellation diagram for M-QAM

estimate_snr(signal_rx, symbols_tx, gray_symbols)

Estimate the signal-to-noise ratio from received and known transmitted symbols.

generate_bitmapping_mtx(coded_symbs, ...[, ...])

make_decision(signal, symbols[, method])

Quantize signal array onto symbols.

norm_to_s0(sig, M)

Normalise signal to signal power calculated according to _[1]

soft_l_value_demapper(rx_symbs, num_bits, ...)

soft_l_value_demapper_minmax(rx_symbs, ...)