Method for unimodality constraint
forces column of matrix to have one maximum each
constraintUnimod(x, d, tol = 0)
x
: data matrix (spectra or contributions)d
: matrix with the original spectral valuestol
: tolerance (value between 0 and 1) to take make method stable to small fluctuations