Double SNR(Double ActualZeroPadding)
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.
| # | Name | Description |
|---|---|---|
| 1 | ActualZeroPadding | Zero-padding factor |
| 2 | normalises the noise-line sum. Default 1. |
Returns: Double - 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.