SNR is defined as the maximum signal value divided by the standard deviation of the noise.
an object of class mrs_data
.
a ppm region to define where the maximum signal value should be estimated.
a ppm region to defined where the noise level should be estimated.
polynomial order to fit to the noise region before estimating the standard deviation.
interpolation factor to improve detection of the highest signal value.
output signal, noise and SNR values separately.
an array of SNR values.
The mean noise value is subtracted from the maximum signal value to reduce DC offset bias. A polynomial detrending fit (second order by default) is applied to the noise region before the noise standard deviation is estimated.