PARAFAC-ALS Lite: Parallel Factor Analysis - Alternating Least Squares
UnmixingMATLAB
Adrián Gómez-Sánchez
Lovelace's Square
Parallel Factor Analysis by Alternating Least Squares for 3-way data with non-negativity constraints on A, B and C. Uses Khatri–Rao structure, column normalization to avoid scale ambiguity, and per-iteration LOF monitoring with simple real-time plots. Compact MATLAB code.
References:
Harshman, R. A. (1970). Foundations of the PARAFAC procedure. UCLA Working Papers in Phonetics, 16, 1-84
Carroll, J. D.; Chang, J. J. (1970). Analysis of individual differences in multidimensional scaling via an N-way generalization of Eckart-Young decomposition. Psychometrika, 35(3), 283-319. https://doi.org/10.1007/BF02310791
Bro, R. (1997). PARAFAC. Tutorial and applications. Chemometrics and Intelligent Laboratory Systems, 38(2), 149-171. https://doi.org/10.1016/S0169-7439(97)00032-4