https://123dok.net/document/y6epgne4-contrast-invariant-snr-and-isotonic-regressions.html