An 1D optimal transport inspired loss function in the spectral domain. Can be used for improving frequency localization/estimation in differentiable digital signal processing. Experiments from paper: "Unsupervised Harmonic Parameter Estimation Using Differentiable DSP and Spectral Optimal Transport".