comnum.enob_from_sinad_db#

comnum.enob_from_sinad_db(sinad_db)#

The effective number of bits of a SINAD measured on a full-scale sine: (SINAD - 1.76) / 6.02 (IEEE Std 1241).

Parameters:

sinad_db (float | array_like) – the SINAD (dB).

Returns:

the ENOB (bits).

Return type:

float | numpy.ndarray

Raises:

ValueError – for values that are not real numbers.

Examples

>>> import comnum
>>> round(comnum.enob_from_sinad_db(comnum.theory_sqnr_sine_db(10)), 6)
10.0