Physics, Data Science, Least Squares, Chemometrics, Spectroscopy.
spectra calculated by multiplying K and c. c will be then the best least squares solution for equation A = Kc. Using the fact that The Euclidean norm of our error is In order to find the minimum of such function, we just need to derive it, set the resulting expression equal to zero and solve for c.