enstools.scores.peak_signal_to_noise_ratio

enstools.scores.peak_signal_to_noise_ratio(reference: DataArray, target: DataArray) DataArray

Computes the Peak Sign to Noise Ratio. With images, it is usually defined as:

\[20 \cdot log10(maxValue)-10 \cdot log10(mse)\]

with all the values being between 0 and max_value.

However, because we are dealing with real values we will use:

\[20 \cdot log10(range)-10 \cdot log10(mse)\]
Parameters:
referencexarray.DataArray
targetxarray.DataArray
Returns:
psnr: xarray.DataArray

A data array with the time-series of the peak signal to noise ratio.