TBiSpectrumAnalyzer::SNR Method

double SNR(double ActualZeroPadding = 1);

Signal-to-noise ratio in dB. Sums the absolute amplitudes of all marked peaks and compares against the sum of the absolute amplitude lines outside the mark guard bands.

#NameTypeDescription
1ActualZeroPadding = 1doubleZero-padding factor; normalises the noise-line sum. Default 1.

Returns: Signal-to-noise ratio in dB.

Remarks:

With marks {A_i} and noise lines {N_j} (lines outside every mark guard band of width MainlobeWidth*ActualZeroPadding), SNR = 20 log_(10)( (sum_i | A_i |)/(1/Zsum_j | N_j |) ) [dB], where Z = ActualZeroPadding. Domain: Amplt is a single-sided amplitude spectrum with Marks on the tones. Returns 0 when Marks.Count is 0 or on internal error.

See Also: TBiSpectrumAnalyzer::SINAD, TBiSpectrumAnalyzer::NF
Declared in Dew::Signal::TSpectrum · Dew.Signal/SignalTools.h · Cross-compiler