comnum.theory_sqnr_sine_db#

comnum.theory_sqnr_sine_db(bits)#

The SQNR of a full-scale sine through an ideal quantiser: 6.02 N + 1.76 dB (Bennett 1948).

Parameters:

bits (int) – resolution N.

Returns:

the SQNR (dB).

Return type:

float

Examples

>>> import comnum
>>> round(comnum.theory_sqnr_sine_db(8), 2)
49.93