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