constraintAngle: Method for angle constraint
Description
Adds a small portion of mean to contributions or spectra to increase contrast
Usage
constraintAngle(x, d, weight = 0.05)
Arguments
- x
data matrix (spectra or contributions)
- d
matrix with the original spectral values
- weight
how many percent of mean to add (between 0 and 1)